- All Superinterfaces:
ICollectionValue,IDocumentBasedNodeItem,IFeatureNoDataValuedItem,IItem,IMetapathQueryable,INodeItem,INodeItemVisitable,IPathSegment
Supports querying of global definitions and associated instances in a
Metaschema module by effective name.
All definitions in the
IDefinition.ModuleScope.PUBLIC are visible.
This allows the exported structure of the Metaschema module to be queried.
-
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.default URIGet the URI associated with this document.The Metaschema module this item is based on.default IModuleNodeItemGet 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.default StaticContextGet the static context to use to query this node item.default IItemTypegetType()Get the type information for the item.static IItemTypetype()Get the static type information of the node item.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.node.IFeatureNoDataValuedItem
getValue, hasValueMethods inherited from interface dev.metaschema.core.metapath.item.IItem
atomize, contentsAsSequence, flatten, 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, modelItems, preceding, precedingSibling, stringValueMethods inherited from interface dev.metaschema.core.metapath.format.IPathSegment
getPath, toPath
-
Method Details
-
type
Get the static type information of the node item.- Returns:
- the item type
-
getNodeType
Description copied from interface:INodeItemGet the node type for the node item.- Specified by:
getNodeTypein interfaceINodeItem- Returns:
- the node type
-
getType
Description copied from interface:IItemGet the type information for the item. -
getModule
The Metaschema module this item is based on.- Returns:
- the Metaschema module
-
getDocumentUri
Description copied from interface:IDocumentBasedNodeItemGet the URI associated with this document.- Specified by:
getDocumentUriin interfaceIDocumentBasedNodeItem- Returns:
- the document's URI or
nullif unavailable
-
getNodeItemKind
Description copied from interface:INodeItemGet the kind of node item this is.- Specified by:
getNodeItemKindin interfaceINodeItem- Returns:
- the node item's kind
-
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
-
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
-
getStaticContext
Description copied from interface:INodeItemGet the static context to use to query this node item.- Specified by:
getStaticContextin interfaceINodeItem- Returns:
- the static context
-
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
-