Package dev.metaschema.oscal.lib.model
Class ControlImplementation
java.lang.Object
dev.metaschema.oscal.lib.model.ControlImplementation
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Control Implementation",
description="Describes how the system satisfies a set of controls.",
name="control-implementation",
moduleClass=OscalSspModule.class,
remarks="Use of `set-parameter` in this context, sets the parameter for all controls referenced by any `implemented-requirement` contained in this context. Any `set-parameter` defined in a child context will override this value. If not overridden by a child, this value applies in the child context.",
modelConstraints=@AssemblyConstraints(index=@Index(id="oscal-by-component-export-provided-uuid-index",level=ERROR,target="implemented-requirement//by-component/export/provided",name="by-component-export-provided-uuid",keyFields=@KeyField(target="@uuid")),unique=@IsUnique(id="oscal-unique-ssp-control-implementation-set-parameter",level=ERROR,target="set-parameter",keyFields=@KeyField(target="@param-id"),remarks="Since multiple `set-parameter` entries can be provided, each parameter must be set only once.")))
public class ControlImplementation
extends Object
implements dev.metaschema.core.model.IBoundObject
Describes how the system satisfies a set of controls.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.ControlImplementationinstance with no metadata.ControlImplementation(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.ControlImplementationinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newImplementedRequirementitem to the underlying collection.booleanaddSetParameter(SetParameter item) Add a newSetParameteritem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Control Implementation Description".Get the "Control-based Requirement".dev.metaschema.core.model.IMetaschemaDataGet the "Set Parameter Value".booleanRemove the first matchingImplementedRequirementitem from the underlying collection.booleanRemove the first matchingSetParameteritem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Control Implementation Description".voidSet the "Control-based Requirement".voidsetSetParameters(List<SetParameter> value) Set the "Set Parameter Value".toString()
-
Constructor Details
-
ControlImplementation
public ControlImplementation()Constructs a newdev.metaschema.oscal.lib.model.ControlImplementationinstance with no metadata. -
ControlImplementation
Constructs a newdev.metaschema.oscal.lib.model.ControlImplementationinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getDescription
Get the "Control Implementation Description".A statement describing important things to know about how this set of control satisfaction documentation is approached.
- Returns:
- the description value
-
setDescription
Set the "Control Implementation Description".A statement describing important things to know about how this set of control satisfaction documentation is approached.
- Parameters:
value- the description value to set
-
getSetParameters
Get the "Set Parameter Value".Identifies the parameter that will be set by the enclosed value.
- Returns:
- the set-parameter value
-
setSetParameters
Set the "Set Parameter Value".Identifies the parameter that will be set by the enclosed value.
- Parameters:
value- the set-parameter value to set
-
addSetParameter
Add a newSetParameteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSetParameter
Remove the first matchingSetParameteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getImplementedRequirements
Get the "Control-based Requirement".Describes how the system satisfies the requirements of an individual control.
- Returns:
- the implemented-requirement value
-
setImplementedRequirements
Set the "Control-based Requirement".Describes how the system satisfies the requirements of an individual control.
- Parameters:
value- the implemented-requirement value to set
-
addImplementedRequirement
Add a newImplementedRequirementitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeImplementedRequirement
Remove the first matchingImplementedRequirementitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-