Class AbstractCatalogVisitor<RESULT,CONTEXT>
java.lang.Object
gov.nist.secauto.oscal.lib.model.control.catalog.AbstractCatalogVisitor<RESULT,CONTEXT>
- All Implemented Interfaces:
ICatalogVisitor<RESULT,CONTEXT>
public abstract class AbstractCatalogVisitor<RESULT,CONTEXT>
extends Object
implements ICatalogVisitor<RESULT,CONTEXT>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RESULTaggregateResult(RESULT previous, RESULT current) Aggregate two results into one.protected abstract RESULTGet a new initial/default result for the visitor.visitCatalog(Catalog catalog, CONTEXT context) Visit the providedcatalog.visitControl(Control control, CONTEXT context) Visit the providedcontrol.visitGroup(CatalogGroup group, CONTEXT context) Visit the providedgroup.visitParameter(Parameter parameter, CONTEXT context) Visit the providedparameter.
-
Constructor Details
-
AbstractCatalogVisitor
public AbstractCatalogVisitor()
-
-
Method Details
-
defaultResult
Get a new initial/default result for the visitor.- Returns:
- the result
-
aggregateResult
Aggregate two results into one.- Parameters:
previous- the first resultcurrent- the next result- Returns:
- the result produced by combining the two results
-
visitCatalog
Description copied from interface:ICatalogVisitorVisit the providedcatalog.- Specified by:
visitCatalogin interfaceICatalogVisitor<RESULT,CONTEXT> - Parameters:
catalog- the bound catalog objectcontext- the visitor context- Returns:
- a meaningful result from visiting the object
-
visitGroup
Description copied from interface:ICatalogVisitorVisit the providedgroup.- Specified by:
visitGroupin interfaceICatalogVisitor<RESULT,CONTEXT> - Parameters:
group- the bound group objectcontext- the visitor context- Returns:
- a meaningful result from visiting the object
-
visitControl
Description copied from interface:ICatalogVisitorVisit the providedcontrol.- Specified by:
visitControlin interfaceICatalogVisitor<RESULT,CONTEXT> - Parameters:
control- the bound control objectcontext- the visitor context- Returns:
- a meaningful result from visiting the object
-
visitParameter
Description copied from interface:ICatalogVisitorVisit the providedparameter.- Specified by:
visitParameterin interfaceICatalogVisitor<RESULT,CONTEXT> - Parameters:
parameter- the bound parameter objectcontext- the visitor context- Returns:
- a meaningful result from visiting the object
-