@PublicApi public static interface PropagateAttributeContext.Parent extends AttributeContext
The context interface for preparing children loading function by a propagate.
Note that this interface does not extend AttributeLoaderContext
, so no
dependency values are available at this point. It can be used by an implementation of
a PropagateAttributeLoader
to get a list of children and otherwise prepare
the actual loading function, which will be passed PropagateAttributeContext
.
Modifier and Type | Method and Description |
---|---|
List<StructureRow> |
getChildren()
Returns the list of all children of the parent row.
|
StructureRow |
getParent()
Returns the current parent row, which children are about to be calculated.
|
default boolean |
isLoadingRoots()
Returns true if the current parent is the super-root and the children are forest roots.
|
default boolean |
isLoadingSuperRoot()
Returns true if the current parent is nothing and the child to be loaded is the super-root.
|
getBaseStructureId, getBaseUrl, getI18n, getI18nHelper, getLoadTimeMillis, getLoadTimeNanos, getLocale, getObject, getTimeZone, getUser, putObject
@NotNull List<StructureRow> getChildren()
@Nullable StructureRow getParent()
Returns the current parent row, which children are about to be calculated.
Null means the children is only the super-root. If this method returns a super-root,
then the children will be roots. Note that this logic does not depend on the value of
PropagateAttributeLoader.isLoadingSuperRoot()
.
PropagateAttributeLoader
default boolean isLoadingSuperRoot()
default boolean isLoadingRoots()
Copyright © 2024 Tempo Software. All Rights Reserved.