Module dev.metaschema.core
Interface IDocumentBasedNodeItem
- All Superinterfaces:
ICollectionValue,IItem,IMetapathQueryable,INodeItem,INodeItemVisitable,IPathSegment
- All Known Subinterfaces:
IDocumentNodeItem,IModuleNodeItem
Represents a Metapath node item that is associated with a document.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Method Summary
Modifier and TypeMethodDescriptiondefault URIRetrieve the base URI of this node.Get the URI associated with this document.default IModelNodeItem<?,?> Retrieve the parent content node item if it exists.default INodeItemRetrieve the parent node item if it exists.default IAnyAtomicItemGet the atomic value for the item.Methods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.IItem
atomize, contentsAsSequence, flatten, getType, getValue, hasValue, toSequenceMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
accept, ancestor, ancestorOrSelf, descendant, descendantOrSelf, flags, following, followingSibling, format, getFlagByName, getFlags, getLocation, getMetapath, getModelItems, getModelItemsByName, getNodeItemKind, getNodeType, 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
-
Method Details
-
getParentContentNodeItem
Description copied from interface:INodeItemRetrieve the parent content node item if it exists. A content node is a non-document node.- Specified by:
getParentContentNodeItemin interfaceINodeItem- Returns:
- the parent content node item, or
nullif this node item has no known parent content node item
-
getDocumentUri
Get the URI associated with this document.- Returns:
- the document's URI or
nullif unavailable
-
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
- Specified by:
getBaseUriin interfaceINodeItem- Returns:
- the base URI or
nullif it is unknown
-
getParentNodeItem
Description copied from interface:INodeItemRetrieve the parent node item if it exists.- Specified by:
getParentNodeItemin interfaceINodeItem- Returns:
- the parent node item, or
nullif this node item has no known parent
-
toAtomicItem
Description copied from interface:IItemGet the atomic value for the item. This may be the same item if the item is an instance ofIAnyAtomicItem.An implementation of item atomization.
- Specified by:
toAtomicItemin interfaceIItem- Returns:
- the atomic value or
nullif the item has no available value
-