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 ObjectAllows 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 booleanaddComponent(SystemComponent item)Add a newSystemComponentitem to the underlying collection.booleanaddInventoryItem(InventoryItem item)Add a newInventoryItemitem to the underlying collection.AssessmentAssetsgetAssessmentAssets()List<SystemComponent>getComponents()List<InventoryItem>getInventoryItems()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()booleanremoveComponent(SystemComponent item)Remove the first matchingSystemComponentitem from the underlying collection.booleanremoveInventoryItem(InventoryItem item)Remove the first matchingInventoryItemitem from the underlying collection.voidsetAssessmentAssets(AssessmentAssets value)voidsetComponents(List<SystemComponent> value)voidsetInventoryItems(List<InventoryItem> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)StringtoString()
-
-
-
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 newSystemComponentitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeComponent
public boolean removeComponent(SystemComponent item)
Remove the first matchingSystemComponentitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getInventoryItems
public List<InventoryItem> getInventoryItems()
-
setInventoryItems
public void setInventoryItems(List<InventoryItem> value)
-
addInventoryItem
public boolean addInventoryItem(InventoryItem item)
Add a newInventoryItemitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeInventoryItem
public boolean removeInventoryItem(InventoryItem item)
Remove the first matchingInventoryItemitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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)
-
-