Class ComponentDefinition
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject,IOscalInstance
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.ComponentDefinitioninstance with no metadata.ComponentDefinition(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.ComponentDefinitioninstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCapability(Capability item) Add a newCapabilityitem to the underlying collection.booleanaddComponent(DefinedComponent item) Add a newDefinedComponentitem to the underlying collection.booleanAdd a newImportComponentDefinitionitem to the underlying collection.Get the "Back matter".Get the "Capability".Get the "Component".Get the "Import Component Definition".Get the "Document Metadata".dev.metaschema.core.model.IMetaschemaDatagetUuid()Get the "Component Definition Universally Unique Identifier".booleanremoveCapability(Capability item) Remove the first matchingCapabilityitem from the underlying collection.booleanRemove the first matchingDefinedComponentitem from the underlying collection.booleanRemove the first matchingImportComponentDefinitionitem from the underlying collection.voidsetBackMatter(BackMatter value) Set the "Back matter".voidsetCapabilities(List<Capability> value) Set the "Capability".voidsetComponents(List<DefinedComponent> value) Set the "Component".voidSet the "Import Component Definition".voidsetMetadata(Metadata value) Set the "Document Metadata".voidSet the "Component Definition Universally Unique Identifier".toString()Methods inherited from class dev.metaschema.oscal.lib.model.AbstractOscalInstance
getResourceByUuid
-
Constructor Details
-
ComponentDefinition
public ComponentDefinition()Constructs a newdev.metaschema.oscal.lib.model.ComponentDefinitioninstance with no metadata. -
ComponentDefinition
Constructs a newdev.metaschema.oscal.lib.model.ComponentDefinitioninstance 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 "Component Definition Universally Unique Identifier".Provides a globally unique means to identify a given component definition instance.
- Specified by:
getUuidin interfaceIOscalInstance- Returns:
- the uuid value
-
setUuid
Set the "Component Definition Universally Unique Identifier".Provides a globally unique means to identify a given component definition instance.
- Parameters:
value- the uuid value to set
-
getMetadata
Get the "Document Metadata".Provides information about the containing document, and defines concepts that are shared across the document.
- Specified by:
getMetadatain interfaceIOscalInstance- Returns:
- the metadata value
-
setMetadata
Set the "Document Metadata".Provides information about the containing document, and defines concepts that are shared across the document.
- Parameters:
value- the metadata value to set
-
getImportComponentDefinitions
Get the "Import Component Definition".Loads a component definition from another resource.
- Returns:
- the import-component-definition value
-
setImportComponentDefinitions
Set the "Import Component Definition".Loads a component definition from another resource.
- Parameters:
value- the import-component-definition value to set
-
addImportComponentDefinition
Add a newImportComponentDefinitionitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeImportComponentDefinition
Remove the first matchingImportComponentDefinitionitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getComponents
Get the "Component".A defined component that can be part of an implemented system.
- Returns:
- the component value
-
setComponents
Set the "Component".A defined component that can be part of an implemented system.
- Parameters:
value- the component value to set
-
addComponent
Add a newDefinedComponentitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeComponent
Remove the first matchingDefinedComponentitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getCapabilities
Get the "Capability".A grouping of other components and/or capabilities.
- Returns:
- the capability value
-
setCapabilities
Set the "Capability".A grouping of other components and/or capabilities.
- Parameters:
value- the capability value to set
-
addCapability
Add a newCapabilityitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeCapability
Remove the first matchingCapabilityitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getBackMatter
Get the "Back matter".A collection of resources that may be referenced from within the OSCAL document instance.
- Specified by:
getBackMatterin interfaceIOscalInstance- Returns:
- the back-matter value, or
nullif not set
-
setBackMatter
Set the "Back matter".A collection of resources that may be referenced from within the OSCAL document instance.
- Parameters:
value- the back-matter value to set, ornullto clear
-
toString
-