Package gov.nist.secauto.oscal.lib.model
Class Result.LocalDefinitions
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Result.LocalDefinitions
-
- Enclosing class:
- Result
@MetaschemaAssembly(formalName="Local Definitions", description="Used to define data objects that are used in the assessment plan, that do not appear in the referenced SSP.", name="local-definitions", metaschema=OscalArMetaschema.class) @IsUnique(id="unique-ar-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`.") @IsUnique(id="unique-ar-local-definitions-user",level=ERROR,target="user",keyFields=@KeyField(target="@uuid"),remarks="A given `uuid` must be assigned only once to a user.") public static class Result.LocalDefinitions extends ObjectUsed to define data objects that are used in the assessment plan, that do not appear in the referenced SSP.
-
-
Constructor Summary
Constructors Constructor Description LocalDefinitions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAssessmentTask(Task item)Add a newTaskitem to the underlying collection.booleanaddComponent(SystemComponent item)Add a newSystemComponentitem to the underlying collection.booleanaddInventoryItem(InventoryItem item)Add a newInventoryItemitem to the underlying collection.booleanaddUser(SystemUser item)Add a newSystemUseritem to the underlying collection.AssessmentAssetsgetAssessmentAssets()List<SystemComponent>getComponents()List<InventoryItem>getInventoryItems()List<Task>getTasks()List<SystemUser>getUsers()booleanremoveAssessmentTask(Task item)Remove the first matchingTaskitem from the underlying collection.booleanremoveComponent(SystemComponent item)Remove the first matchingSystemComponentitem from the underlying collection.booleanremoveInventoryItem(InventoryItem item)Remove the first matchingInventoryItemitem from the underlying collection.booleanremoveUser(SystemUser item)Remove the first matchingSystemUseritem from the underlying collection.voidsetAssessmentAssets(AssessmentAssets value)voidsetComponents(List<SystemComponent> value)voidsetInventoryItems(List<InventoryItem> value)voidsetTasks(List<Task> value)voidsetUsers(List<SystemUser> 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
-
getUsers
public List<SystemUser> getUsers()
-
setUsers
public void setUsers(List<SystemUser> value)
-
addUser
public boolean addUser(SystemUser item)
Add a newSystemUseritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeUser
public boolean removeUser(SystemUser item)
Remove the first matchingSystemUseritem 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)
-
addAssessmentTask
public boolean addAssessmentTask(Task item)
Add a newTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssessmentTask
public boolean removeAssessmentTask(Task item)
Remove the first matchingTaskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-