Interface IModelNodeItem<D extends IFlagContainer,I extends INamedInstance>
-
- All Superinterfaces:
IDefinitionNodeItem<D,I>
,IItem
,INodeItem
,INodeItemVisitable
,IPathSegment
- All Known Subinterfaces:
IAssemblyNodeItem
,ICycledAssemblyNodeItem
,IFieldNodeItem
,IRootAssemblyNodeItem
public interface IModelNodeItem<D extends IFlagContainer,I extends INamedInstance> extends IDefinitionNodeItem<D,I>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IAssemblyNodeItem
getParentContentNodeItem()
Retrieve the parent content node item if it exists.INodeItem
getParentNodeItem()
Retrieve the parent node item if it exists.int
getPosition()
Retrieve the relative position of this node relative to sibling nodes.-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.node.IDefinitionNodeItem
getDefinition, getInstance, getName
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.IItem
getValue, hasValue
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.node.INodeItem
ancestor, ancestorOrSelf, descendant, descendantOrSelf, flags, format, getBaseUri, getFlagByName, getFlags, getMetapath, getModelItems, getModelItemsByName, getNodeItemType, getPathStream, modelItems
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.node.INodeItemVisitable
accept
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.format.IPathSegment
getNodeItem, getPath, toPath
-
-
-
-
Method Detail
-
getPosition
int getPosition()
Retrieve 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
1
is used as the starting value to align with the XPath specification.- Returns:
- a positive integer value designating this instance's position within a collection
-
getParentNodeItem
INodeItem getParentNodeItem()
Retrieve 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:
getParentNodeItem
in interfaceINodeItem
- Returns:
- the parent node item, or
null
if this node item has no known parent
-
getParentContentNodeItem
IAssemblyNodeItem getParentContentNodeItem()
Description copied from interface:INodeItem
Retrieve the parent content node item if it exists. A content node is a non-document node.- Specified by:
getParentContentNodeItem
in interfaceINodeItem
- Returns:
- the parent content node item, or
null
if this node item has no known parent content node item
-
-