Package gov.nist.secauto.oscal.lib.model
Class ComponentDefinition
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.ComponentDefinition
-
@MetaschemaAssembly(formalName="Component Definition", description="A collection of component descriptions, which may optionally be grouped by capability.", name="component-definition", metaschema=OscalComponentDefinitionMetaschema.class, rootName="component-definition") @AssemblyConstraints(index=@Index(level=ERROR,target="component",name="index-system-component-uuid",keyFields=@KeyField(target="@uuid"),remarks="Since multiple `component` entries can be provided, each component must have a unique `uuid`."), isUnique=@IsUnique(id="unique-component-definition-capability",level=ERROR,target="capability",keyFields=@KeyField(target="@uuid"),remarks="A given `component` must not be referenced more than once within the same `capability`.")) public class ComponentDefinition extends Object
A collection of component descriptions, which may optionally be grouped by capability.
-
-
Constructor Summary
Constructors Constructor Description ComponentDefinition()
-
Method Summary
-
-
-
Constructor Detail
-
ComponentDefinition
public ComponentDefinition()
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
-
setMetadata
public void setMetadata(Metadata value)
-
getImportComponentDefinitions
public List<ImportComponentDefinition> getImportComponentDefinitions()
-
setImportComponentDefinitions
public void setImportComponentDefinitions(List<ImportComponentDefinition> value)
-
addImportComponentDefinition
public boolean addImportComponentDefinition(ImportComponentDefinition item)
Add a newImportComponentDefinition
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeImportComponentDefinition
public boolean removeImportComponentDefinition(ImportComponentDefinition item)
Remove the first matchingImportComponentDefinition
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getComponents
public List<DefinedComponent> getComponents()
-
setComponents
public void setComponents(List<DefinedComponent> value)
-
addComponent
public boolean addComponent(DefinedComponent item)
Add a newDefinedComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeComponent
public boolean removeComponent(DefinedComponent item)
Remove the first matchingDefinedComponent
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getCapabilities
public List<Capability> getCapabilities()
-
setCapabilities
public void setCapabilities(List<Capability> value)
-
addCapability
public boolean addCapability(Capability item)
Add a newCapability
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeCapability
public boolean removeCapability(Capability item)
Remove the first matchingCapability
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getBackMatter
public BackMatter getBackMatter()
-
setBackMatter
public void setBackMatter(BackMatter value)
-
-