Class Capability
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.Capabilityinstance with no metadata.Capability(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.Capabilityinstance with the specified metadata. -
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.Get the "Control Implementation Set".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Capability Description".Get the "Incorporates Component".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetName()Get the "Capability Name".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".getUuid()Get the "Capability Identifier".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.voidSet the "Control Implementation Set".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Capability Description".voidSet the "Incorporates Component".voidSet the "Link".voidSet the "Capability Name".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Capability Identifier".toString()
-
Constructor Details
-
Capability
public Capability()Constructs a newdev.metaschema.oscal.lib.model.Capabilityinstance with no metadata. -
Capability
Constructs a newdev.metaschema.oscal.lib.model.Capabilityinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Capability Identifier".Provides a globally unique means to identify a given capability.
- Returns:
- the uuid value
-
setUuid
Set the "Capability Identifier".Provides a globally unique means to identify a given capability.
- Parameters:
value- the uuid value to set
-
getName
Get the "Capability Name".The capability's human-readable name.
- Returns:
- the name value
-
setName
Set the "Capability Name".The capability's human-readable name.
- Parameters:
value- the name value to set
-
getDescription
Get the "Capability Description".A summary of the capability.
- Returns:
- the description value
-
setDescription
Set the "Capability Description".A summary of the capability.
- Parameters:
value- the description value to set
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
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
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
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
Get the "Incorporates Component".The collection of components comprising this capability.
- Returns:
- the incorporates-component value
-
setIncorporatesComponents
Set the "Incorporates Component".The collection of components comprising this capability.
- Parameters:
value- the incorporates-component value to set
-
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
Get the "Control Implementation Set".Defines how the component or capability supports a set of controls.
- Returns:
- the control-implementation value
-
setControlImplementations
Set the "Control Implementation Set".Defines how the component or capability supports a set of controls.
- Parameters:
value- the control-implementation value to set
-
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
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-