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 Object
Used 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 boolean
addAssessmentTask(Task item)
Add a newTask
item to the underlying collection.boolean
addComponent(SystemComponent item)
Add a newSystemComponent
item to the underlying collection.boolean
addInventoryItem(InventoryItem item)
Add a newInventoryItem
item to the underlying collection.boolean
addUser(SystemUser item)
Add a newSystemUser
item to the underlying collection.AssessmentAssets
getAssessmentAssets()
List<SystemComponent>
getComponents()
List<InventoryItem>
getInventoryItems()
List<Task>
getTasks()
List<SystemUser>
getUsers()
boolean
removeAssessmentTask(Task item)
Remove the first matchingTask
item from the underlying collection.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.boolean
removeUser(SystemUser item)
Remove the first matchingSystemUser
item from the underlying collection.void
setAssessmentAssets(AssessmentAssets value)
void
setComponents(List<SystemComponent> value)
void
setInventoryItems(List<InventoryItem> value)
void
setTasks(List<Task> value)
void
setUsers(List<SystemUser> 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
-
getUsers
public List<SystemUser> getUsers()
-
setUsers
public void setUsers(List<SystemUser> value)
-
addUser
public boolean addUser(SystemUser item)
Add a newSystemUser
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeUser
public boolean removeUser(SystemUser item)
Remove the first matchingSystemUser
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)
-
addAssessmentTask
public boolean addAssessmentTask(Task item)
Add a newTask
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAssessmentTask
public boolean removeAssessmentTask(Task item)
Remove the first matchingTask
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-