Class AbstractIndexingVisitor<T,R>
- All Implemented Interfaces:
ICatalogVisitor<T,R>
- Direct Known Subclasses:
ControlIndexingVisitor,ControlSelectionVisitor
-
Field Summary
Fields inherited from class gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractCatalogEntityVisitor
CHILD_PART_METAPATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IIndexergetIndexer(T state) visitControl(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, R childResult, T state) Called when visiting a control.visitGroup(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, R childResult, T state) Called when visiting a group.protected voidvisitLocation(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem locationItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem metadataItem, T state) Called when visiting a location in the "metadata" section of an OSCAL document.protected RvisitParameter(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem parameterItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem catalogOrGroupOrControl, T state) Called when visiting a parameter.protected voidvisitPart(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem partItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem catalogOrGroupOrControl, T state) Called when visiting a part.protected voidvisitParty(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem partyItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem metadataItem, T state) Called when visiting a party in the "metadata" section of an OSCAL document.protected voidvisitResource(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem resourceItem, gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem rootItem, T state) Called when visiting a resource in the "back-matter" section of an OSCAL document.protected voidvisitRole(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem roleItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem metadataItem, T state) Called when visiting a role in the "metadata" section of an OSCAL document.Methods inherited from class gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractCatalogEntityVisitor
getItemTypesToVisit, isVisitedItemType, visitBackMatter, visitCatalog, visitControlContainer, visitControlInternal, visitGroupContainer, visitGroupInternal, visitMetadata, visitPartsMethods inherited from class gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractCatalogVisitor
aggregateResults, newDefaultResult, visitControlItem, visitGroupItem
-
Constructor Details
-
AbstractIndexingVisitor
public AbstractIndexingVisitor() -
AbstractIndexingVisitor
-
-
Method Details
-
getIndexer
-
visitGroup
public R visitGroup(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, R childResult, T state) Description copied from interface:ICatalogVisitorCalled when visiting a group.Can be overridden by classes extending this interface to support processing of the visited object.
- Parameters:
item- the Metapath item for the groupchildResult- the result of evaluating the group's childrenstate- the calling context information- Returns:
- a meaningful result of the given type
-
visitControl
public R visitControl(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem item, R childResult, T state) Description copied from interface:ICatalogVisitorCalled when visiting a control.Can be overridden by classes extending this interface to support processing of the visited object.
- Parameters:
item- the Metapath item for the controlchildResult- the result of evaluating the control's childrenstate- the calling context information- Returns:
- a meaningful result of the given type
-
visitParameter
protected R visitParameter(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem parameterItem, @NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem catalogOrGroupOrControl, T state) Description copied from class:AbstractCatalogEntityVisitorCalled when visiting a parameter.Can be overridden by classes extending this interface to support processing of the visited object.
- Overrides:
visitParameterin classAbstractCatalogEntityVisitor<T,R> - Parameters:
parameterItem- the Metapath item for the parametercatalogOrGroupOrControl- the parameter's parent Metapath itemstate- the calling context information- Returns:
- a meaningful result of the given type
-
visitPart
protected void visitPart(@NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem partItem, @NonNull gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem catalogOrGroupOrControl, T state) Description copied from class:AbstractCatalogEntityVisitorCalled when visiting a part.Can be overridden by classes extending this interface to support processing of the visited object.
- Overrides:
visitPartin classAbstractCatalogEntityVisitor<T,R> - Parameters:
partItem- the Metapath item for the partcatalogOrGroupOrControl- the part's parent Metapath itemstate- the calling context information
-
visitRole
protected void visitRole(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem roleItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem metadataItem, T state) Description copied from class:AbstractCatalogEntityVisitorCalled when visiting a role in the "metadata" section of an OSCAL document.Can be overridden by classes extending this interface to support processing of the visited object.
- Overrides:
visitRolein classAbstractCatalogEntityVisitor<T,R> - Parameters:
roleItem- the role Module node item which is a child of the "metadata" nodemetadataItem- the "metadata" Module node item containing the rolestate- the calling context information
-
visitLocation
protected void visitLocation(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem locationItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem metadataItem, T state) Description copied from class:AbstractCatalogEntityVisitorCalled when visiting a location in the "metadata" section of an OSCAL document.Can be overridden by classes extending this interface to support processing of the visited object.
- Overrides:
visitLocationin classAbstractCatalogEntityVisitor<T,R> - Parameters:
locationItem- the location Module node item which is a child of the "metadata" nodemetadataItem- the "metadata" Module node item containing the locationstate- the calling context information
-
visitParty
protected void visitParty(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem partyItem, gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem metadataItem, T state) Description copied from class:AbstractCatalogEntityVisitorCalled when visiting a party in the "metadata" section of an OSCAL document.Can be overridden by classes extending this interface to support processing of the visited object.
- Overrides:
visitPartyin classAbstractCatalogEntityVisitor<T,R> - Parameters:
partyItem- the party Module node item which is a child of the "metadata" nodemetadataItem- the "metadata" Module node item containing the partystate- the calling context information
-
visitResource
protected void visitResource(gov.nist.secauto.metaschema.core.metapath.item.node.IAssemblyNodeItem resourceItem, gov.nist.secauto.metaschema.core.metapath.item.node.IRootAssemblyNodeItem rootItem, T state) Description copied from class:AbstractCatalogEntityVisitorCalled when visiting a resource in the "back-matter" section of an OSCAL document.Can be overridden by classes extending this interface to support processing of the visited object.
- Overrides:
visitResourcein classAbstractCatalogEntityVisitor<T,R> - Parameters:
resourceItem- the resource Module node item which is a child of the "metadata" noderootItem- the resource Module node item containing the partystate- the calling context information
-