Class MetapathFormatter
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.metapath.format.MetapathFormatter
-
- All Implemented Interfaces:
IPathFormatter
public class MetapathFormatter extends Object implements IPathFormatter
AnIPathFormatter
that produces a Metapath expression for the path to a givenINodeItem
.
-
-
Field Summary
-
Fields inherited from interface gov.nist.secauto.metaschema.core.metapath.format.IPathFormatter
METAPATH_PATH_FORMATER
-
-
Constructor Summary
Constructors Constructor Description MetapathFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formatAssembly(IAssemblyNodeItem assembly)
This visitor callback is used to format an individual assembly path segment.String
formatDocument(IDocumentNodeItem document)
This visitor callback is used to format an individual document path segment.String
formatField(IFieldNodeItem field)
This visitor callback is used to format an individual field path segment.String
formatFlag(IFlagNodeItem flag)
This visitor callback is used to format an individual flag path segment.String
formatMetaschema(IModuleNodeItem metaschema)
This visitor callback is used to format an individual metaschema path segment.String
formatRootAssembly(IRootAssemblyNodeItem root)
This visitor callback is used to format a root assembly path segment.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gov.nist.secauto.metaschema.core.metapath.format.IPathFormatter
format
-
-
-
-
Constructor Detail
-
MetapathFormatter
public MetapathFormatter()
-
-
Method Detail
-
formatMetaschema
@NonNull public String formatMetaschema(IModuleNodeItem metaschema)
Description copied from interface:IPathFormatter
This visitor callback is used to format an individual metaschema path segment.- Specified by:
formatMetaschema
in interfaceIPathFormatter
- Parameters:
metaschema
- the node to format- Returns:
- the formatted text for the segment
-
formatDocument
public String formatDocument(IDocumentNodeItem document)
Description copied from interface:IPathFormatter
This visitor callback is used to format an individual document path segment.- Specified by:
formatDocument
in interfaceIPathFormatter
- Parameters:
document
- the node to format- Returns:
- the formatted text for the segment
-
formatRootAssembly
public String formatRootAssembly(IRootAssemblyNodeItem root)
Description copied from interface:IPathFormatter
This visitor callback is used to format a root assembly path segment.- Specified by:
formatRootAssembly
in interfaceIPathFormatter
- Parameters:
root
- the node to format- Returns:
- the formatted text for the segment
-
formatAssembly
public String formatAssembly(IAssemblyNodeItem assembly)
Description copied from interface:IPathFormatter
This visitor callback is used to format an individual assembly path segment.- Specified by:
formatAssembly
in interfaceIPathFormatter
- Parameters:
assembly
- the node to format- Returns:
- the formatted text for the segment
-
formatField
public String formatField(IFieldNodeItem field)
Description copied from interface:IPathFormatter
This visitor callback is used to format an individual field path segment.- Specified by:
formatField
in interfaceIPathFormatter
- Parameters:
field
- the node to format- Returns:
- the formatted text for the segment
-
formatFlag
public String formatFlag(IFlagNodeItem flag)
Description copied from interface:IPathFormatter
This visitor callback is used to format an individual flag path segment.- Specified by:
formatFlag
in interfaceIPathFormatter
- Parameters:
flag
- the node to format- Returns:
- the formatted text for the segment
-
-