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 Object
A 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 boolean
addControlImplementation(ComponentControlImplementation item)
Add a newComponentControlImplementation
item to the underlying collection.boolean
addIncorporatesComponent(IncorporatesComponent item)
Add a newIncorporatesComponent
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.List<ComponentControlImplementation>
getControlImplementations()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
List<IncorporatesComponent>
getIncorporatesComponents()
List<Link>
getLinks()
String
getName()
List<Property>
getProps()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
UUID
getUuid()
boolean
removeControlImplementation(ComponentControlImplementation item)
Remove the first matchingComponentControlImplementation
item from the underlying collection.boolean
removeIncorporatesComponent(IncorporatesComponent item)
Remove the first matchingIncorporatesComponent
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.void
setControlImplementations(List<ComponentControlImplementation> value)
void
setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setIncorporatesComponents(List<IncorporatesComponent> value)
void
setLinks(List<Link> value)
void
setName(String value)
void
setProps(List<Property> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setUuid(UUID value)
String
toString()
-
-
-
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 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
-
getIncorporatesComponents
public List<IncorporatesComponent> getIncorporatesComponents()
-
setIncorporatesComponents
public void setIncorporatesComponents(List<IncorporatesComponent> value)
-
addIncorporatesComponent
public boolean addIncorporatesComponent(IncorporatesComponent item)
Add a newIncorporatesComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeIncorporatesComponent
public boolean removeIncorporatesComponent(IncorporatesComponent item)
Remove the first matchingIncorporatesComponent
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getControlImplementations
public List<ComponentControlImplementation> getControlImplementations()
-
setControlImplementations
public void setControlImplementations(List<ComponentControlImplementation> value)
-
addControlImplementation
public boolean addControlImplementation(ComponentControlImplementation item)
Add a newComponentControlImplementation
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeControlImplementation
public boolean removeControlImplementation(ComponentControlImplementation item)
Remove the first matchingComponentControlImplementation
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
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)
-
-