Package gov.nist.secauto.oscal.lib.model
Class Capability
java.lang.Object
gov.nist.secauto.oscal.lib.model.Capability
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Capability",
description="A grouping of other components and/or capabilities.",
name="capability",
moduleClass=OscalComponentDefinitionModule.class,
modelConstraints=@AssemblyConstraints(unique=@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
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A grouping of other components and/or capabilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newComponentControlImplementationitem to the underlying collection.booleanAdd a newIncorporatesComponentitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetName()getProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetUuid()booleanRemove the first matchingComponentControlImplementationitem from the underlying collection.booleanRemove 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.voidvoidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidtoString()
-
Constructor Details
-
Capability
public Capability() -
Capability
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getName
-
setName
-
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
-
getIncorporatesComponents
-
setIncorporatesComponents
-
addIncorporatesComponent
Add a newIncorporatesComponentitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeIncorporatesComponent
Remove the first matchingIncorporatesComponentitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getControlImplementations
-
setControlImplementations
-
addControlImplementation
Add a newComponentControlImplementationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeControlImplementation
Remove the first matchingComponentControlImplementationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-