java.lang.Object
dev.metaschema.core.metapath.item.node.AbstractNodeItem
- All Implemented Interfaces:
IPathSegment,ICollectionValue,IItem,INodeItem,INodeItemVisitable,IMetapathQueryable
- Direct Known Subclasses:
AbstractDefinitionNodeItem,AbstractInstanceNodeItem
A common base class for node item implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringGet the signature of this node's value.final StringGenerates a string signature for this node item in the format:type⪻location_metapath⪼ortype⪻location_metapath⪼(value)where: type: The node type signature location_metapath: A Metapath for the node's location in the document value: Optional value signature if a value is present The special characters ⪻ and ⪼ are used as delimiters to clearly separate the type from the location Metapath expression.final StringtoString()Methods 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
deepEqualsMethods 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, getBaseUri, getFlagByName, getFlags, getLocation, getMetapath, getModelItems, getModelItemsByName, getNodeItemKind, getNodeType, getParentContentNodeItem, getParentNodeItem, getPathStream, getPosition, getStaticContext, 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
-
AbstractNodeItem
public AbstractNodeItem()
-
-
Method Details
-
toSignature
Generates a string signature for this node item in the format:type⪻location_metapath⪼ortype⪻location_metapath⪼(value)where:- type: The node type signature
- location_metapath: A Metapath for the node's location in the document
- value: Optional value signature if a value is present
- Specified by:
toSignaturein interfaceICollectionValue- Returns:
- the string signature of this node item
-
getValueSignature
Get the signature of this node's value.- Returns:
- the value's signature or
nullif the node has no value
-
toString
-