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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newComponentControlImplementation
item to the underlying collection.boolean
Add a newIncorporatesComponent
item to the underlying collection.boolean
Add a newLink
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getName()
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getUuid()
boolean
Remove the first matchingComponentControlImplementation
item from the underlying collection.boolean
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
void
setDescription
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
void
void
void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
toString()
-
Constructor Details
-
Capability
public Capability() -
Capability
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getName
-
setName
-
getDescription
-
setDescription
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
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
-
setIncorporatesComponents
-
addIncorporatesComponent
Add a newIncorporatesComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeIncorporatesComponent
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
-
setControlImplementations
-
addControlImplementation
Add a newComponentControlImplementation
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeControlImplementation
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
-
setRemarks
-
toString
-