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 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 booleanaddActivity(Activity item)Add a newActivityitem to the underlying collection.booleanaddComponent(SystemComponent item)Add a newSystemComponentitem to the underlying collection.booleanaddInventoryItem(InventoryItem item)Add a newInventoryItemitem to the underlying collection.booleanaddObjectivesAndMethods(LocalObjective item)Add a newLocalObjectiveitem to the underlying collection.booleanaddUser(SystemUser item)Add a newSystemUseritem to the underlying collection.List<Activity>getActivities()List<SystemComponent>getComponents()List<InventoryItem>getInventoryItems()List<LocalObjective>getObjectivesAndMethods()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()List<SystemUser>getUsers()booleanremoveActivity(Activity item)Remove the first matchingActivityitem 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.booleanremoveObjectivesAndMethods(LocalObjective item)Remove the first matchingLocalObjectiveitem from the underlying collection.booleanremoveUser(SystemUser item)Remove the first matchingSystemUseritem from the underlying collection.voidsetActivities(List<Activity> value)voidsetComponents(List<SystemComponent> value)voidsetInventoryItems(List<InventoryItem> value)voidsetObjectivesAndMethods(List<LocalObjective> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline 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
-
getObjectivesAndMethods
public List<LocalObjective> getObjectivesAndMethods()
-
setObjectivesAndMethods
public void setObjectivesAndMethods(List<LocalObjective> value)
-
addObjectivesAndMethods
public boolean addObjectivesAndMethods(LocalObjective item)
Add a newLocalObjectiveitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeObjectivesAndMethods
public boolean removeObjectivesAndMethods(LocalObjective item)
Remove the first matchingLocalObjectiveitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getActivities
public List<Activity> getActivities()
-
setActivities
public void setActivities(List<Activity> value)
-
addActivity
public boolean addActivity(Activity item)
Add a newActivityitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeActivity
public boolean removeActivity(Activity item)
Remove the first matchingActivityitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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)
-
-