Module dev.metaschema.core
Class AbstractOrphanedDefinitionNodeItem<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.AbstractOrphanedDefinitionNodeItem<D,I>
- Type Parameters:
D- the Java type of the definitionI- 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).
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Constructor Summary
ConstructorsConstructorDescriptionAbstractOrphanedDefinitionNodeItem(D definition, URI baseUri) Construct a new orphaned definition node item. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the base URI of this node.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.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, precedingSibling, stringValueMethods 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
-
AbstractOrphanedDefinitionNodeItem
Construct a new orphaned definition node item.- Parameters:
definition- the Metaschema definition this node representsbaseUri- the base URI for resolving relative references, ornullif not applicable
-
-
Method Details
-
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
-
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
-