Class AbstractIndexingVisitor<T,R>
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractCatalogVisitor<T,R>
-
- gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractCatalogEntityVisitor<T,R>
-
- gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractIndexingVisitor<T,R>
-
- All Implemented Interfaces:
ICatalogVisitor<T,R>
- Direct Known Subclasses:
ControlIndexingVisitor,ControlSelectionVisitor
public abstract class AbstractIndexingVisitor<T,R> extends AbstractCatalogEntityVisitor<T,R>
-
-
Field Summary
-
Fields inherited from class gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractCatalogEntityVisitor
CHILD_PART_METAPATH
-
-
Constructor Summary
Constructors Constructor Description AbstractIndexingVisitor()AbstractIndexingVisitor(Set<IEntityItem.ItemType> itemTypesToIndex)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IIndexergetIndexer(T state)RvisitControl(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item, R childResult, T state)Called when visiting a control.RvisitGroup(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem item, R childResult, T state)Called when visiting a group.protected voidvisitLocation(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem locationItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem metadataItem, T state)Called when visiting a location in the "metadata" section of an OSCAL document.protected RvisitParameter(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem parameterItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem catalogOrGroupOrControl, T state)Called when visiting a parameter.protected voidvisitPart(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem partItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem catalogOrGroupOrControl, T state)Called when visiting a part.protected voidvisitParty(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem partyItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem metadataItem, T state)Called when visiting a party in the "metadata" section of an OSCAL document.protected voidvisitResource(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem resourceItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRootAssemblyNodeItem rootItem, T state)Called when visiting a resource in the "back-matter" section of an OSCAL document.protected voidvisitRole(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem roleItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem 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, visitParts
-
Methods inherited from class gov.nist.secauto.oscal.lib.profile.resolver.support.AbstractCatalogVisitor
aggregateResults, newDefaultResult, visitControlItem, visitGroupItem
-
-
-
-
Constructor Detail
-
AbstractIndexingVisitor
public AbstractIndexingVisitor()
-
AbstractIndexingVisitor
public AbstractIndexingVisitor(@NonNull Set<IEntityItem.ItemType> itemTypesToIndex)
-
-
Method Detail
-
getIndexer
@NonNull protected abstract IIndexer getIndexer(T state)
-
visitGroup
public R visitGroup(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem 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.model.common.metapath.item.IRequiredValueModelNodeItem 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.model.common.metapath.item.IRequiredValueModelNodeItem parameterItem, @NonNull gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem 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.model.common.metapath.item.IRequiredValueModelNodeItem partItem, @NonNull gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem 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.model.common.metapath.item.IRequiredValueModelNodeItem roleItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem 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 Metaschema node item which is a child of the "metadata" nodemetadataItem- the "metadata" Metaschema node item containing the rolestate- the calling context information
-
visitLocation
protected void visitLocation(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem locationItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem 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 Metaschema node item which is a child of the "metadata" nodemetadataItem- the "metadata" Metaschema node item containing the locationstate- the calling context information
-
visitParty
protected void visitParty(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem partyItem, gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem 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 Metaschema node item which is a child of the "metadata" nodemetadataItem- the "metadata" Metaschema node item containing the partystate- the calling context information
-
visitResource
protected void visitResource(gov.nist.secauto.metaschema.model.common.metapath.item.IRequiredValueModelNodeItem resourceItem, gov.nist.secauto.metaschema.model.common.metapath.item.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 Metaschema node item which is a child of the "metadata" noderootItem- the resource Metaschema node item containing the partystate- the calling context information
-
-