Package gov.nist.secauto.oscal.lib.model
Class LocalDefinitions
java.lang.Object
gov.nist.secauto.oscal.lib.model.LocalDefinitions
- All Implemented Interfaces:
gov.nist.secauto.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="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 gov.nist.secauto.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
ConstructorDescriptionLocalDefinitions
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addComponent
(SystemComponent item) Add a newSystemComponent
item to the underlying collection.boolean
Add a newInventoryItem
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
boolean
Remove the first matchingSystemComponent
item from the underlying collection.boolean
Remove the first matchingInventoryItem
item from the underlying collection.void
void
setComponents
(List<SystemComponent> value) void
setInventoryItems
(List<InventoryItem> value) void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) toString()
-
Constructor Details
-
LocalDefinitions
public LocalDefinitions() -
LocalDefinitions
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getComponents
-
setComponents
-
addComponent
Add a newSystemComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeComponent
Remove the first matchingSystemComponent
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getInventoryItems
-
setInventoryItems
-
addInventoryItem
Add a newInventoryItem
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeInventoryItem
Remove the first matchingInventoryItem
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getAssessmentAssets
-
setAssessmentAssets
-
getRemarks
-
setRemarks
-
toString
-