Package gov.nist.secauto.oscal.lib.model
Class ComponentControlImplementation
java.lang.Object
gov.nist.secauto.oscal.lib.model.ComponentControlImplementation
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Control Implementation Set",
description="Defines how the component or capability supports a set of controls.",
name="control-implementation",
moduleClass=OscalComponentDefinitionModule.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(unique=@IsUnique(id="unique-component-definition-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 ComponentControlImplementation
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Defines how the component or capability supports a set of controls.
-
Constructor Summary
ConstructorsConstructorDescriptionComponentControlImplementation(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newComponentImplementedRequirementitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanaddSetParameter(SetParameter item) Add a newSetParameteritem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()getUuid()booleanRemove the first matchingComponentImplementedRequirementitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingSetParameteritem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidvoidsetSetParameters(List<SetParameter> value) voidvoidtoString()
-
Constructor Details
-
ComponentControlImplementation
public ComponentControlImplementation() -
ComponentControlImplementation
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getSource
-
setSource
-
getDescription
-
setDescription
-
getProps
-
setProps
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
-
setLinks
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getSetParameters
-
setSetParameters
-
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
-
setImplementedRequirements
-
addImplementedRequirement
Add a newComponentImplementedRequirementitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeImplementedRequirement
Remove the first matchingComponentImplementedRequirementitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-