Module dev.metaschema.core
Interface IAssemblyNodeItem
- All Superinterfaces:
ICollectionValue,IDefinitionNodeItem<IAssemblyDefinition,,IAssemblyInstance> IItem,IMetapathQueryable,IModelNodeItem<IAssemblyDefinition,,IAssemblyInstance> INodeItem,INodeItemVisitable,IPathSegment
- All Known Subinterfaces:
IAssemblyInstanceGroupedNodeItem,ICycledAssemblyNodeItem,IRootAssemblyNodeItem
A Metapath node valued item representing a Metaschema module assembly.
-
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 URIRetrieve the base URI of this node.default IAssemblyNodeItemGet 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 IKindTest<IAssemblyNodeItem>getType()Get the type information for the item.default IAnyAtomicItemGet the atomic value 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.IDefinitionNodeItem
getDefinition, getInstance, getLocation, getQNameMethods inherited from interface dev.metaschema.core.metapath.item.IItem
atomize, contentsAsSequence, flatten, getValue, hasValue, toSequenceMethods inherited from interface dev.metaschema.core.metapath.item.node.IModelNodeItem
descendantOrSelf, following, followingSibling, getParentContentNodeItem, getParentNodeItem, getPosition, preceding, precedingSiblingMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
accept, ancestor, ancestorOrSelf, descendant, flags, getFlagByName, getFlags, getMetapath, getModelItems, getModelItemsByName, getPathStream, getStaticContext, modelItems, 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
-
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
-
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
-
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
-
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
-
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
-