Interface IModuleNodeItem
-
- All Superinterfaces:
IDocumentNodeItem
,IItem
,INodeItem
,INodeItemVisitable
,IPathSegment
public interface IModuleNodeItem extends IDocumentNodeItem
Supports querying of global definitions and associated instances in a Metaschema module by effective name.All definitions in the
ModuleScopeEnum.INHERITED
scope. This allows the exported structure of the Metaschema module to be queried.
-
-
Method Summary
All Methods Instance Methods Abstract 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
getDocumentUri()
Get the URI associated with this document.IModule
getModule()
The Metaschema module this item is based on.default IModuleNodeItem
getNodeItem()
Get the value associated with the path segment.default NodeItemType
getNodeItemType()
Get the type of node item this is.default Object
getValue()
Get the item's "wrapped" value.default boolean
hasValue()
Determine if the item has an associated value.-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.item.node.IDocumentNodeItem
getBaseUri, getParentContentNodeItem, getParentNodeItem, getRootNodeItemByName
-
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
-
getModule
@NonNull IModule getModule()
The Metaschema module this item is based on.- Returns:
- the Metaschema module
-
getDocumentUri
default URI getDocumentUri()
Description copied from interface:IDocumentNodeItem
Get the URI associated with this document.- Specified by:
getDocumentUri
in interfaceIDocumentNodeItem
- Returns:
- the document's URI or
null
if unavailable
-
getNodeItemType
default NodeItemType getNodeItemType()
Description copied from interface:INodeItem
Get the type of node item this is.- Specified by:
getNodeItemType
in interfaceIDocumentNodeItem
- Specified by:
getNodeItemType
in interfaceINodeItem
- Returns:
- the node item's type
-
getNodeItem
default IModuleNodeItem getNodeItem()
Description copied from interface:IPathSegment
Get the value associated with the path segment.- Specified by:
getNodeItem
in interfaceIDocumentNodeItem
- Specified by:
getNodeItem
in interfaceIPathSegment
- Returns:
- the value or if no value is associated with this path segment
-
format
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 interfaceIDocumentNodeItem
- 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 interfaceIDocumentNodeItem
- 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
-
getValue
@Nullable default Object getValue()
Description copied from interface:IItem
Get the item's "wrapped" value. This "wrapped" value may be:- In the case of an Assembly, a Java object representing the fields and flags of the assembly.
- In the case of a Field with flags, a Java object representing the field value and flags of the field.
- In the case of a Field without flags or a flag, a Java type managed by a
IDataTypeAdapter
or a primitive type provided by the Java standard library.
-
-