Module dev.metaschema.core
Class AbstractGlobalDefinitionNodeItem<D extends IDefinition,I extends INamedInstance>
java.lang.Object
dev.metaschema.core.metapath.item.node.AbstractNodeItem
dev.metaschema.core.metapath.item.node.AbstractDefinitionNodeItem<D,I>
dev.metaschema.core.metapath.item.node.AbstractGlobalDefinitionNodeItem<D,I>
- Type Parameters:
D- the Java type of the associated Metaschema module definitionI- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGlobalDefinitionNodeItem(D definition, IModuleNodeItem metaschemaNodeItem) Construct a new Metaschema definition-based node item. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the base URI of this node.protected IModuleNodeItemGet the parent module containing this item.Retrieve the parent node item if it exists.Get the static context to use to query this node item.protected StringGet the signature of this node's value.Get the string value of the node.Methods inherited from class dev.metaschema.core.metapath.item.node.AbstractDefinitionNodeItem
getDefinitionMethods inherited from class dev.metaschema.core.metapath.item.node.AbstractNodeItem
toSignature, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.node.IDefinitionNodeItem
getLocation, getQNameMethods inherited from interface dev.metaschema.core.metapath.item.node.IFeatureOrhpanedDefinitionNodeItem
getInstance, getParentContentNodeItemMethods inherited from interface dev.metaschema.core.metapath.item.IItem
atomize, contentsAsSequence, flatten, getType, getValue, hasValue, toAtomicItem, toSequenceMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
accept, ancestor, ancestorOrSelf, descendant, descendantOrSelf, flags, following, followingSibling, format, getFlagByName, getFlags, getMetapath, getModelItems, getModelItemsByName, getNodeItemKind, getNodeType, getPathStream, getPosition, modelItems, preceding, precedingSiblingMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItemVisitable
acceptMethods inherited from interface dev.metaschema.core.metapath.format.IPathSegment
getNodeItem, getPath, toPath
-
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 ofmetaschemaNodeItem- the Metaschema module containing this definition
-
-
Method Details
-
getModuleNodeItem
Get the parent module containing this item.- Returns:
- the module node item
-
getParentNodeItem
Description copied from interface:INodeItemRetrieve the parent node item if it exists.- Returns:
- the parent node item, or
nullif this node item has no known parent
-
getBaseUri
Description copied from interface:INodeItemRetrieve the base URI of this node.The base URI of a node will be in order of preference:
- the base URI defined on the node
- the base URI defined on the nearest ancestor node
- the base URI defined on the document node
nullif the document node is unknown
- Returns:
- the base URI or
nullif it is unknown
-
getStaticContext
Description copied from interface:INodeItemGet the static context to use to query this node item.- Returns:
- the static context
-
stringValue
Description copied from interface:INodeItemGet the string value of the node.- Returns:
- the string value of the node or an empty string if it has no value.
-
getValueSignature
Description copied from class:AbstractNodeItemGet the signature of this node's value.- Specified by:
getValueSignaturein classAbstractNodeItem- Returns:
- the value's signature or
nullif the node has no value
-