Module dev.metaschema.core
Interface IRootAssemblyNodeItem
- All Superinterfaces:
IAssemblyNodeItem,ICollectionValue,IDefinitionNodeItem<IAssemblyDefinition,,IAssemblyInstance> IFeatureChildNodeItem,IItem,IMetapathQueryable,IModelNodeItem<IAssemblyDefinition,,IAssemblyInstance> INodeItem,INodeItemVisitable,IPathSegment
A marker interface used to expose root node functionality for an assembly
node that has root information.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Method Summary
Modifier and TypeMethodDescriptiondefault Stringformat(IPathFormatter formatter) Generate a path for this node in the directed node graph, using the provided path formatter.Get the parent document node item for this root.default IAssemblyInstanceRetrieve the instance associated with this path segment.default IRootAssemblyNodeItemGet the value associated with the path segment.default IAssemblyNodeItemRetrieve the parent content node item if it exists.default IDocumentNodeItemRetrieve the parent node item if it exists.default intRetrieve the relative position of this node relative to sibling nodes.default IEnhancedQNamegetQName()Get the name of this node.Methods inherited from interface dev.metaschema.core.metapath.item.node.IAssemblyNodeItem
accept, deepEquals, getBaseUri, getNodeItemKind, getNodeType, getType, toAtomicItemMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.node.IDefinitionNodeItem
getDefinition, getLocationMethods inherited from interface dev.metaschema.core.metapath.item.node.IFeatureChildNodeItem
getStaticContextMethods 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, preceding, precedingSiblingMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
accept, ancestor, ancestorOrSelf, descendant, flags, getFlagByName, getFlags, getMetapath, getModelItems, getModelItemsByName, getPathStream, modelItems, stringValueMethods inherited from interface dev.metaschema.core.metapath.format.IPathSegment
getPath, toPath
-
Method Details
-
getQName
Get the name of this node.This overrides the default behavior using the root name for the assembly.
- Specified by:
getQNamein interfaceIDefinitionNodeItem<IAssemblyDefinition,IAssemblyInstance> - Returns:
- the qualified name
-
getDocumentNodeItem
Get the parent document node item for this root.- Returns:
- the parent document item
-
getParentNodeItem
Description copied from interface:IModelNodeItemRetrieve the parent node item if it exists.The parent can be an assembly or a document (in the case of a root assembly.
- Specified by:
getParentNodeItemin interfaceIFeatureChildNodeItem- Specified by:
getParentNodeItemin interfaceIModelNodeItem<IAssemblyDefinition,IAssemblyInstance> - Specified by:
getParentNodeItemin interfaceINodeItem- Returns:
- the parent node item, or
nullif this node item has no known parent
-
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 interfaceIModelNodeItem<IAssemblyDefinition,IAssemblyInstance> - Specified by:
getParentContentNodeItemin interfaceINodeItem- Returns:
- the parent content node item, or
nullif this node item has no known parent content node item
-
getInstance
Description copied from interface:IDefinitionNodeItemRetrieve the instance associated with this path segment.- Specified by:
getInstancein interfaceIDefinitionNodeItem<IAssemblyDefinition,IAssemblyInstance> - Returns:
- the instance of the segment, or
nullif it doesn't have one
-
getNodeItem
Description copied from interface:IPathSegmentGet the value associated with the path segment.- Specified by:
getNodeItemin interfaceIAssemblyNodeItem- Specified by:
getNodeItemin interfaceIMetapathQueryable- Specified by:
getNodeItemin interfaceIPathSegment- Returns:
- the value or
nullif no value is associated with this path segment
-
getPosition
default int getPosition()Description copied from interface:INodeItemRetrieve the relative position of this node relative to sibling nodes.A singleton item in a sequence will have a position value of
1.The value
1is used as the starting value to align with the XPath specification.- Specified by:
getPositionin interfaceIModelNodeItem<IAssemblyDefinition,IAssemblyInstance> - Specified by:
getPositionin interfaceINodeItem- Returns:
- a positive integer value designating this instance's position within a collection
-
format
Description copied from interface:INodeItemGenerate a path for this node in the directed node graph, using the provided path formatter.- Specified by:
formatin interfaceIAssemblyNodeItem- Specified by:
formatin interfaceINodeItem- Specified by:
formatin interfaceIPathSegment- Parameters:
formatter- the path formatter- Returns:
- a textual representation of the path segment
-