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
-
Method Summary
Modifier and TypeMethodDescriptionprotected RESULT
aggregateResult
(RESULT previous, RESULT current) Aggregate two results into one.protected abstract RESULT
Get 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:ICatalogVisitor
Visit the providedcatalog
.- Specified by:
visitCatalog
in 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:ICatalogVisitor
Visit the providedgroup
.- Specified by:
visitGroup
in 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:ICatalogVisitor
Visit the providedcontrol
.- Specified by:
visitControl
in 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:ICatalogVisitor
Visit the providedparameter
.- Specified by:
visitParameter
in interfaceICatalogVisitor<RESULT,
CONTEXT> - Parameters:
parameter
- the bound parameter objectcontext
- the visitor context- Returns:
- a meaningful result from visiting the object
-