Interface PropagateAttributeContext.Parent

All Superinterfaces:
AttributeContext
Enclosing interface:
PropagateAttributeContext

@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.

See Also:
  • Method Details

    • getChildren

      @NotNull List<StructureRow> getChildren()
      Returns the list of all children of the parent row. The values for Some of these children are about to be calculated.
      Returns:
      children rows under the parent with the indicated value
    • getParent

      @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().

      See Also:
    • isLoadingSuperRoot

      default boolean isLoadingSuperRoot()
      Returns true if the current parent is nothing and the child to be loaded is the super-root.
      Returns:
      true if the super-root is about to be loaded
    • isLoadingRoots

      default boolean isLoadingRoots()
      Returns true if the current parent is the super-root and the children are forest roots.
      Returns:
      true if forest roots are about to be loaded