Class AbstractOrphanedDefinitionNodeItem<D extends IDefinition,I extends INamedInstance>

Type Parameters:
D - the Java type of the definition
I - the Java type of the instance
All Implemented Interfaces:
IPathSegment, ICollectionValue, IItem, IDefinitionNodeItem<D,I>, IFeatureOrhpanedDefinitionNodeItem<D,I>, INodeItem, INodeItemVisitable, IMetapathQueryable

public abstract class AbstractOrphanedDefinitionNodeItem<D extends IDefinition,I extends INamedInstance> extends AbstractDefinitionNodeItem<D,I>
A base implementation of a node item for a Metaschema definition that exists without a parent context (orphaned).
  • Constructor Details

    • AbstractOrphanedDefinitionNodeItem

      public AbstractOrphanedDefinitionNodeItem(@NonNull D definition, @Nullable URI baseUri)
      Construct a new orphaned definition node item.
      Parameters:
      definition - the Metaschema definition this node represents
      baseUri - the base URI for resolving relative references, or null if not applicable
  • Method Details

    • getParentNodeItem

      public INodeItem getParentNodeItem()
      Description copied from interface: INodeItem
      Retrieve the parent node item if it exists.
      Returns:
      the parent node item, or null if this node item has no known parent
    • getBaseUri

      public URI getBaseUri()
      Description copied from interface: INodeItem
      Retrieve the base URI of this node.

      The base URI of a node will be in order of preference:

      1. the base URI defined on the node
      2. the base URI defined on the nearest ancestor node
      3. the base URI defined on the document node
      4. null if the document node is unknown
      Returns:
      the base URI or null if it is unknown
    • getStaticContext

      public StaticContext getStaticContext()
      Description copied from interface: INodeItem
      Get the static context to use to query this node item.
      Returns:
      the static context
    • getValueSignature

      protected String getValueSignature()
      Description copied from class: AbstractNodeItem
      Get the signature of this node's value.
      Specified by:
      getValueSignature in class AbstractNodeItem
      Returns:
      the value's signature or null if the node has no value