Interface ScanningAttributeContext
- All Superinterfaces:
AttributeContext,AttributeLoaderContext,RowAttributeContext
The context interface for scanning attribute loaders.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintgetDepth()Returns the depth of the row currently being loaded.Returns the row that immediately precedes this row in the forest.intReturns the depth of the row that immediately precedes this row in the forest.Methods inherited from interface AttributeContext
getBaseStructureId, getBaseUrl, getI18n, getI18nHelper, getLoadTimeMillis, getLoadTimeNanos, getLocale, getObject, getTimeZone, getUser, putObjectMethods inherited from interface AttributeLoaderContext
addTrail, addTrail, getDependencyAttributeValue, getDependencyValue, valueExpiresMethods inherited from interface RowAttributeContext
getRow
-
Method Details
-
getDepth
int getDepth()Returns the depth of the row currently being loaded.
Root elements have depth of
0. Super-root is never loaded with a scanning loader.- Returns:
- the depth of the row being loaded
-
getPrecedingRow
Returns the row that immediately precedes this row in the forest. When calculating the very first row, returnsnull(and not the super-root!)- Returns:
- preceding row
-
getPrecedingRowDepth
int getPrecedingRowDepth()Returns the depth of the row that immediately precedes this row in the forest. When calculating the very first row, returns
-1.Root elements have depth of
0. Super-root is never loaded with a scanning loader.- Returns:
- the depth of the preceding row
-