Class AbstractGlobalDefinitionNodeItem<D extends IDefinition,I extends INamedInstance>

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

public abstract class AbstractGlobalDefinitionNodeItem<D extends IDefinition,I extends INamedInstance> extends AbstractDefinitionNodeItem<D,I>
Represents a node item based on a global definition from a Metaschema.
  • Constructor Details

    • AbstractGlobalDefinitionNodeItem

      protected AbstractGlobalDefinitionNodeItem(@NonNull D definition, @NonNull IModuleNodeItem metaschemaNodeItem)
      Construct a new Metaschema definition-based node item.
      Parameters:
      definition - the Metaschema definition the node item is an instance of
      metaschemaNodeItem - the Metaschema module containing this definition
  • Method Details

    • getModuleNodeItem

      @NonNull protected IModuleNodeItem getModuleNodeItem()
      Get the parent module containing this item.
      Returns:
      the module node item
    • getParentNodeItem

      @NonNull public IModuleNodeItem 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
    • stringValue

      public String stringValue()
      Description copied from interface: INodeItem
      Get the string value of the node.
      Returns:
      the string value of the node or an empty string if it has no value.
    • 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