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 Object
Defines 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 boolean
addImplementedRequirement(ComponentImplementedRequirement item)
Add a newComponentImplementedRequirement
item to the underlying collection.boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.boolean
addSetParameter(SetParameter item)
Add a newSetParameter
item to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
List<ComponentImplementedRequirement>
getImplementedRequirements()
List<Link>
getLinks()
List<Property>
getProps()
List<SetParameter>
getSetParameters()
URI
getSource()
UUID
getUuid()
boolean
removeImplementedRequirement(ComponentImplementedRequirement item)
Remove the first matchingComponentImplementedRequirement
item from the underlying collection.boolean
removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.boolean
removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.boolean
removeSetParameter(SetParameter item)
Remove the first matchingSetParameter
item from the underlying collection.void
setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setImplementedRequirements(List<ComponentImplementedRequirement> value)
void
setLinks(List<Link> value)
void
setProps(List<Property> value)
void
setSetParameters(List<SetParameter> value)
void
setSource(URI value)
void
setUuid(UUID value)
String
toString()
-
-
-
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 newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getSetParameters
public List<SetParameter> getSetParameters()
-
setSetParameters
public void setSetParameters(List<SetParameter> value)
-
addSetParameter
public boolean addSetParameter(SetParameter item)
Add a newSetParameter
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeSetParameter
public boolean removeSetParameter(SetParameter item)
Remove the first matchingSetParameter
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getImplementedRequirements
public List<ComponentImplementedRequirement> getImplementedRequirements()
-
setImplementedRequirements
public void setImplementedRequirements(List<ComponentImplementedRequirement> value)
-
addImplementedRequirement
public boolean addImplementedRequirement(ComponentImplementedRequirement item)
Add a newComponentImplementedRequirement
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeImplementedRequirement
public boolean removeImplementedRequirement(ComponentImplementedRequirement item)
Remove the first matchingComponentImplementedRequirement
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-