Package gov.nist.secauto.oscal.lib.model
Class ComponentDefinition
java.lang.Object
gov.nist.secauto.oscal.lib.model.ComponentDefinition
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Component Definition",
description="A collection of component descriptions, which may optionally be grouped by capability.",
name="component-definition",
moduleClass=OscalComponentDefinitionModule.class,
rootName="component-definition",
modelConstraints=@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`."),unique=@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
implements gov.nist.secauto.metaschema.core.model.IBoundObject
A collection of component descriptions, which may optionally be grouped by capability.
-
Constructor Summary
ConstructorDescriptionComponentDefinition
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addCapability
(Capability item) Add a newCapability
item to the underlying collection.boolean
addComponent
(DefinedComponent item) Add a newDefinedComponent
item to the underlying collection.boolean
Add a newImportComponentDefinition
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
getUuid()
boolean
removeCapability
(Capability item) Remove the first matchingCapability
item from the underlying collection.boolean
Remove the first matchingDefinedComponent
item from the underlying collection.boolean
Remove the first matchingImportComponentDefinition
item from the underlying collection.void
setBackMatter
(BackMatter value) void
setCapabilities
(List<Capability> value) void
setComponents
(List<DefinedComponent> value) void
void
setMetadata
(Metadata value) void
toString()
-
Constructor Details
-
ComponentDefinition
public ComponentDefinition() -
ComponentDefinition
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getMetadata
-
setMetadata
-
getImportComponentDefinitions
-
setImportComponentDefinitions
-
addImportComponentDefinition
Add a newImportComponentDefinition
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeImportComponentDefinition
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
-
setComponents
-
addComponent
Add a newDefinedComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeComponent
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
-
setCapabilities
-
addCapability
Add a newCapability
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeCapability
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
-
setBackMatter
-
toString
-