Interface IFieldNodeItem
-
- All Superinterfaces:
IAtomicValuedItem
,IDefinitionNodeItem<IFieldDefinition,IFieldInstance>
,IItem
,IModelNodeItem<IFieldDefinition,IFieldInstance>
,INodeItem
,INodeItemVisitable
,IPathSegment
public interface IFieldNodeItem extends IModelNodeItem<IFieldDefinition,IFieldInstance>, IAtomicValuedItem
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <RESULT,CONTEXT>
RESULTaccept(INodeItemVisitor<RESULT,CONTEXT> visitor, CONTEXT context)
A visitor callback.default String
format(IPathFormatter formatter)
Generate a path for this node in the directed node graph, using the provided path formatter.default URI
getBaseUri()
Retrieve the base URI of this node.default IFieldNodeItem
getNodeItem()
Get the value associated with the path segment.default NodeItemType
getNodeItemType()
Get the type of node item this is.-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.IAtomicValuedItem
toAtomicItem
-
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.IModelNodeItem
getParentContentNodeItem, getParentNodeItem, getPosition
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.node.INodeItem
ancestor, ancestorOrSelf, descendant, descendantOrSelf, flags, getFlagByName, getFlags, getMetapath, getModelItems, getModelItemsByName, getPathStream, modelItems
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.format.IPathSegment
getPath, toPath
-
-
-
-
Method Detail
-
getNodeItemType
default NodeItemType getNodeItemType()
Description copied from interface:INodeItem
Get the type of node item this is.- Specified by:
getNodeItemType
in interfaceINodeItem
- Returns:
- the node item's type
-
getNodeItem
default IFieldNodeItem getNodeItem()
Description copied from interface:IPathSegment
Get the value associated with the path segment.- Specified by:
getNodeItem
in interfaceIPathSegment
- Returns:
- the value or if no value is associated with this path segment
-
getBaseUri
@Nullable default URI getBaseUri()
Description copied from interface:INodeItem
Retrieve 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
null
if the document node is unknown
- Specified by:
getBaseUri
in interfaceINodeItem
- Returns:
- the base URI or
null
if it is unknown
-
format
@NonNull default String format(@NonNull IPathFormatter formatter)
Description copied from interface:INodeItem
Generate a path for this node in the directed node graph, using the provided path formatter.- Specified by:
format
in interfaceINodeItem
- Specified by:
format
in interfaceIPathSegment
- Parameters:
formatter
- the path formatter- Returns:
- a textual representation of the path segment
-
accept
default <RESULT,CONTEXT> RESULT accept(@NonNull INodeItemVisitor<RESULT,CONTEXT> visitor, CONTEXT context)
Description copied from interface:INodeItemVisitable
A visitor callback.- Specified by:
accept
in interfaceINodeItemVisitable
- Type Parameters:
RESULT
- the type of the visitor resultCONTEXT
- the type of the context parameter- Parameters:
visitor
- the calling visitorcontext
- a parameter used to pass contextual information between visitors- Returns:
- the visitor result
-
-