Package gov.nist.secauto.oscal.lib.model
Class AssessmentPlan.LocalDefinitions
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.AssessmentPlan.LocalDefinitions
-
- Enclosing class:
- AssessmentPlan
@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=OscalApMetaschema.class) @IsUnique(id="unique-ap-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-ap-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 AssessmentPlan.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
addActivity(Activity item)
Add a newActivity
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
addObjectivesAndMethods(LocalObjective item)
Add a newLocalObjective
item to the underlying collection.boolean
addUser(SystemUser item)
Add a newSystemUser
item to the underlying collection.List<Activity>
getActivities()
List<SystemComponent>
getComponents()
List<InventoryItem>
getInventoryItems()
List<LocalObjective>
getObjectivesAndMethods()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
List<SystemUser>
getUsers()
boolean
removeActivity(Activity item)
Remove the first matchingActivity
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
removeObjectivesAndMethods(LocalObjective item)
Remove the first matchingLocalObjective
item from the underlying collection.boolean
removeUser(SystemUser item)
Remove the first matchingSystemUser
item from the underlying collection.void
setActivities(List<Activity> value)
void
setComponents(List<SystemComponent> value)
void
setInventoryItems(List<InventoryItem> value)
void
setObjectivesAndMethods(List<LocalObjective> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline 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
-
getObjectivesAndMethods
public List<LocalObjective> getObjectivesAndMethods()
-
setObjectivesAndMethods
public void setObjectivesAndMethods(List<LocalObjective> value)
-
addObjectivesAndMethods
public boolean addObjectivesAndMethods(LocalObjective item)
Add a newLocalObjective
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeObjectivesAndMethods
public boolean removeObjectivesAndMethods(LocalObjective item)
Remove the first matchingLocalObjective
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getActivities
public List<Activity> getActivities()
-
setActivities
public void setActivities(List<Activity> value)
-
addActivity
public boolean addActivity(Activity item)
Add a newActivity
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeActivity
public boolean removeActivity(Activity item)
Remove the first matchingActivity
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
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)
-
-