Interface SchemaTreeRoot

All Known Subinterfaces:
EffectiveModelContext, ModuleEffectiveStatement
All Known Implementing Classes:
EffectiveSchemaContext

@Beta public interface SchemaTreeRoot
Common interface implemented by entities which act as the root of the schema tree and are able to resolve an SchemaNodeIdentifier to a SchemaTreeEffectiveStatement.
  • Method Details

    • findSchemaTreeNode

      @NonNull Optional<SchemaTreeEffectiveStatement<?>> findSchemaTreeNode(@NonNull SchemaNodeIdentifier path)
      Find a schema tree node based on its schema node identifier.
      Parameters:
      path - Absolute schema node identifier
      Returns:
      Found node, or empty
      Throws:
      NullPointerException - if path is null
    • findSchemaTreeNode

      default <T> @NonNull Optional<T> findSchemaTreeNode(@NonNull Class<T> type, @NonNull SchemaNodeIdentifier path)
      Find a schema tree node based on its schema node identifier.
      Type Parameters:
      T - requested node type
      Parameters:
      type - Request node class
      path - Absolute schema node identifier
      Returns:
      Found node, or empty
      Throws:
      NullPointerException - if any argument is null
      Implementation Requirements:
      Default implementation defers to findSchemaTreeNode(SchemaNodeIdentifier) and filters the result using provided class.