Package gov.nist.secauto.oscal.lib.model
Class LocalDefinitions
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.LocalDefinitions
-
@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", metaschema=OscalPoamMetaschema.class) @AssemblyConstraints(isUnique=@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
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
Constructors Constructor Description LocalDefinitions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addComponent(SystemComponent item)
Add a newSystemComponent
item to the underlying collection.boolean
addInventoryItem(InventoryItem item)
Add a newInventoryItem
item to the underlying collection.AssessmentAssets
getAssessmentAssets()
List<SystemComponent>
getComponents()
List<InventoryItem>
getInventoryItems()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
boolean
removeComponent(SystemComponent item)
Remove the first matchingSystemComponent
item from the underlying collection.boolean
removeInventoryItem(InventoryItem item)
Remove the first matchingInventoryItem
item from the underlying collection.void
setAssessmentAssets(AssessmentAssets value)
void
setComponents(List<SystemComponent> value)
void
setInventoryItems(List<InventoryItem> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
String
toString()
-
-
-
Constructor Detail
-
LocalDefinitions
public LocalDefinitions()
-
-
Method Detail
-
getComponents
public List<SystemComponent> getComponents()
-
setComponents
public void setComponents(List<SystemComponent> value)
-
addComponent
public boolean addComponent(SystemComponent item)
Add a newSystemComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeComponent
public boolean removeComponent(SystemComponent item)
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
public List<InventoryItem> getInventoryItems()
-
setInventoryItems
public void setInventoryItems(List<InventoryItem> value)
-
addInventoryItem
public boolean addInventoryItem(InventoryItem item)
Add a newInventoryItem
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeInventoryItem
public boolean removeInventoryItem(InventoryItem item)
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
public AssessmentAssets getAssessmentAssets()
-
setAssessmentAssets
public void setAssessmentAssets(AssessmentAssets value)
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-