Package gov.nist.secauto.oscal.lib.model
Class Capability
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Capability
-
@MetaschemaAssembly(formalName="Capability", description="A grouping of other components and/or capabilities.", name="capability", metaschema=OscalComponentDefinitionMetaschema.class) @AssemblyConstraints(isUnique=@IsUnique(id="unique-component-definition-capability-incorporates-component",level=ERROR,target="incorporates-component",keyFields=@KeyField(target="@component-uuid"),remarks="A given `component` must not be referenced more than once within the same `capability`.")) public class Capability extends ObjectA grouping of other components and/or capabilities.
-
-
Constructor Summary
Constructors Constructor Description Capability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddControlImplementation(ComponentControlImplementation item)Add a newComponentControlImplementationitem to the underlying collection.booleanaddIncorporatesComponent(IncorporatesComponent item)Add a newIncorporatesComponentitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.List<ComponentControlImplementation>getControlImplementations()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()List<IncorporatesComponent>getIncorporatesComponents()List<Link>getLinks()StringgetName()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()UUIDgetUuid()booleanremoveControlImplementation(ComponentControlImplementation item)Remove the first matchingComponentControlImplementationitem from the underlying collection.booleanremoveIncorporatesComponent(IncorporatesComponent item)Remove the first matchingIncorporatesComponentitem 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.voidsetControlImplementations(List<ComponentControlImplementation> value)voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetIncorporatesComponents(List<IncorporatesComponent> value)voidsetLinks(List<Link> value)voidsetName(String value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Capability
public Capability()
-
-
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
-
getIncorporatesComponents
public List<IncorporatesComponent> getIncorporatesComponents()
-
setIncorporatesComponents
public void setIncorporatesComponents(List<IncorporatesComponent> value)
-
addIncorporatesComponent
public boolean addIncorporatesComponent(IncorporatesComponent item)
Add a newIncorporatesComponentitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeIncorporatesComponent
public boolean removeIncorporatesComponent(IncorporatesComponent item)
Remove the first matchingIncorporatesComponentitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getControlImplementations
public List<ComponentControlImplementation> getControlImplementations()
-
setControlImplementations
public void setControlImplementations(List<ComponentControlImplementation> value)
-
addControlImplementation
public boolean addControlImplementation(ComponentControlImplementation item)
Add a newComponentControlImplementationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeControlImplementation
public boolean removeControlImplementation(ComponentControlImplementation item)
Remove the first matchingComponentControlImplementationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-