Package gov.nist.secauto.oscal.lib.model
Class ComponentControlImplementation
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.ComponentControlImplementation
-
@MetaschemaAssembly(formalName="Control Implementation Set", description="Defines how the component or capability supports a set of controls.", name="control-implementation", metaschema=OscalComponentDefinitionMetaschema.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.") @AssemblyConstraints(isUnique=@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 ObjectDefines how the component or capability supports a set of controls.
-
-
Constructor Summary
Constructors Constructor Description ComponentControlImplementation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddImplementedRequirement(ComponentImplementedRequirement item)Add a newComponentImplementedRequirementitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddSetParameter(SetParameter item)Add a newSetParameteritem to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()List<ComponentImplementedRequirement>getImplementedRequirements()List<Link>getLinks()List<Property>getProps()List<SetParameter>getSetParameters()URIgetSource()UUIDgetUuid()booleanremoveImplementedRequirement(ComponentImplementedRequirement item)Remove 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.booleanremoveSetParameter(SetParameter item)Remove the first matchingSetParameteritem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetImplementedRequirements(List<ComponentImplementedRequirement> value)voidsetLinks(List<Link> value)voidsetProps(List<Property> value)voidsetSetParameters(List<SetParameter> value)voidsetSource(URI value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
ComponentControlImplementation
public ComponentControlImplementation()
-
-
Method Detail
-
getDescription
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getDescription()
-
setDescription
public void setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getSetParameters
public List<SetParameter> getSetParameters()
-
setSetParameters
public void setSetParameters(List<SetParameter> value)
-
addSetParameter
public boolean addSetParameter(SetParameter item)
Add a newSetParameteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSetParameter
public boolean removeSetParameter(SetParameter item)
Remove the first matchingSetParameteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getImplementedRequirements
public List<ComponentImplementedRequirement> getImplementedRequirements()
-
setImplementedRequirements
public void setImplementedRequirements(List<ComponentImplementedRequirement> value)
-
addImplementedRequirement
public boolean addImplementedRequirement(ComponentImplementedRequirement item)
Add a newComponentImplementedRequirementitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeImplementedRequirement
public boolean removeImplementedRequirement(ComponentImplementedRequirement item)
Remove the first matchingComponentImplementedRequirementitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-