Package dev.metaschema.oscal.lib.model
Class LocalDefinitions
java.lang.Object
dev.metaschema.oscal.lib.model.LocalDefinitions
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Local Definitions",
description="Allows components, and inventory-items to be defined within the POA\\&M for circumstances where no OSCAL-based SSP exists, or is not delivered with the POA\\&M.",
name="local-definitions",
moduleClass=OscalPoamModule.class,
modelConstraints=@AssemblyConstraints(unique=@IsUnique(id="oscal-unique-poam-local-definitions-component",level=ERROR,target="component",keyFields=@KeyField(target="@uuid"),remarks="Since multiple `component` entries can be provided, each component must have a unique `uuid`.")))
public class LocalDefinitions
extends Object
implements dev.metaschema.core.model.IBoundObject
Allows components, and inventory-items to be defined within the POA&M for circumstances where no OSCAL-based SSP exists, or is not delivered with the POA&M.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.LocalDefinitionsinstance with no metadata.LocalDefinitions(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.LocalDefinitionsinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddComponent(SystemComponent item) Add a newSystemComponentitem to the underlying collection.booleanAdd a newInventoryItemitem to the underlying collection.Get the "Assessment Assets".Get the "Component".Get the "Inventory Item".dev.metaschema.core.model.IMetaschemaDatadev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".booleanRemove the first matchingSystemComponentitem from the underlying collection.booleanRemove the first matchingInventoryItemitem from the underlying collection.voidSet the "Assessment Assets".voidsetComponents(List<SystemComponent> value) Set the "Component".voidsetInventoryItems(List<InventoryItem> value) Set the "Inventory Item".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".toString()
-
Constructor Details
-
LocalDefinitions
public LocalDefinitions()Constructs a newdev.metaschema.oscal.lib.model.LocalDefinitionsinstance with no metadata. -
LocalDefinitions
Constructs a newdev.metaschema.oscal.lib.model.LocalDefinitionsinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
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 newSystemComponentitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeComponent
Remove the first matchingSystemComponentitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getInventoryItems
Get the "Inventory Item".A single managed inventory item within the system.
- Returns:
- the inventory-item value
-
setInventoryItems
Set the "Inventory Item".A single managed inventory item within the system.
- Parameters:
value- the inventory-item value to set
-
addInventoryItem
Add a newInventoryItemitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeInventoryItem
Remove the first matchingInventoryItemitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAssessmentAssets
Get the "Assessment Assets".Identifies the assets used to perform this assessment, such as the assessment team, scanning tools, and assumptions.
- Returns:
- the assessment-assets value, or
nullif not set
-
setAssessmentAssets
Set the "Assessment Assets".Identifies the assets used to perform this assessment, such as the assessment team, scanning tools, and assumptions.
- Parameters:
value- the assessment-assets value to set, ornullto clear
-
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
-