Module dev.metaschema.core
Interface IDocumentNodeItem
- All Superinterfaces:
ICollectionValue,IDocumentBasedNodeItem,IItem,IMetapathQueryable,INodeItem,INodeItemVisitable,IPathSegment
A node item that represents the root of a tree of nodes associated with a
document resource.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Method Summary
Modifier and TypeMethodDescriptiondefault <CONTEXT,RESULT>
RESULTaccept(INodeItemVisitor<CONTEXT, RESULT> visitor, CONTEXT context) A visitor callback.default booleandeepEquals(ICollectionValue other, DynamicContext dynamicContext) Determine if this and the other value are deeply equal.default Stringformat(IPathFormatter formatter) Generate a path for this node in the directed node graph, using the provided path formatter.Get the URI associated with this document.default IDocumentNodeItemGet the value associated with the path segment.default NodeItemKindGet the kind of node item this is.default INodeItem.NodeTypeGet the node type for the node item.Get the node item for the document root element.default IKindTest<IDocumentNodeItem>getType()Get the type information for the item.static IItemTypetype()The node item's type.Methods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.node.IDocumentBasedNodeItem
getBaseUri, getParentContentNodeItem, getParentNodeItem, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.IItem
atomize, contentsAsSequence, flatten, getValue, hasValue, toSequenceMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
accept, ancestor, ancestorOrSelf, descendant, descendantOrSelf, flags, following, followingSibling, getFlagByName, getFlags, getLocation, getMetapath, getModelItems, getModelItemsByName, getPathStream, getPosition, getStaticContext, modelItems, preceding, precedingSibling, stringValueMethods inherited from interface dev.metaschema.core.metapath.format.IPathSegment
getPath, toPath
-
Method Details
-
type
The node item's type.- Returns:
- the type
-
getType
Description copied from interface:IItemGet the type information for the item. -
getNodeItemKind
Description copied from interface:INodeItemGet the kind of node item this is.- Specified by:
getNodeItemKindin interfaceINodeItem- Returns:
- the node item's kind
-
getNodeType
Description copied from interface:INodeItemGet the node type for the node item.- Specified by:
getNodeTypein interfaceINodeItem- Returns:
- the node type
-
getNodeItem
Description copied from interface:IPathSegmentGet the value associated with the path segment.- Specified by:
getNodeItemin interfaceIMetapathQueryable- Specified by:
getNodeItemin interfaceIPathSegment- Returns:
- the value or
nullif no value is associated with this path segment
-
getDocumentUri
Description copied from interface:IDocumentBasedNodeItemGet the URI associated with this document.- Specified by:
getDocumentUriin interfaceIDocumentBasedNodeItem- Returns:
- the document's URI or
nullif unavailable
-
getRootAssemblyNodeItem
Get the node item for the document root element.- Returns:
- the root node item
-
format
Description copied from interface:INodeItemGenerate a path for this node in the directed node graph, using the provided path formatter.- Specified by:
formatin interfaceINodeItem- Specified by:
formatin interfaceIPathSegment- Parameters:
formatter- the path formatter- Returns:
- a textual representation of the path segment
-
accept
default <CONTEXT,RESULT> RESULT accept(@NonNull INodeItemVisitor<CONTEXT, RESULT> visitor, CONTEXT context) Description copied from interface:INodeItemVisitableA visitor callback.- Specified by:
acceptin interfaceINodeItemVisitable- Type Parameters:
CONTEXT- the type of the context parameterRESULT- the type of the visitor result- Parameters:
visitor- the calling visitorcontext- a parameter used to pass contextual information between visitors- Returns:
- the visitor result
-
deepEquals
Description copied from interface:ICollectionValueDetermine if this and the other value are deeply equal.Item equality is defined by the XPath 3.1 fn:deep-equal specification.
- Specified by:
deepEqualsin interfaceICollectionValue- Parameters:
other- the other value to compare to this value todynamicContext- used to provide evaluation information, including the implicit timezone- Returns:
- the
trueif the two values are equal, orfalseotherwise
-