Package gov.nist.secauto.oscal.lib.model
Class AssessmentPlan.LocalDefinitions
java.lang.Object
gov.nist.secauto.oscal.lib.model.AssessmentPlan.LocalDefinitions
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
- 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",
moduleClass=OscalApModule.class,
modelConstraints=@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
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Used to define data objects that are used in the assessment plan, that do not appear in the referenced SSP.
-
Constructor Summary
ConstructorsConstructorDescriptionLocalDefinitions(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddActivity(Activity item) Add a newActivityitem to the underlying collection.booleanaddComponent(SystemComponent item) Add a newSystemComponentitem to the underlying collection.booleanAdd a newInventoryItemitem to the underlying collection.booleanAdd a newLocalObjectiveitem to the underlying collection.booleanaddUser(SystemUser item) Add a newSystemUseritem to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaDatagov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetUsers()booleanremoveActivity(Activity item) Remove the first matchingActivityitem from the underlying collection.booleanRemove the first matchingSystemComponentitem from the underlying collection.booleanRemove the first matchingInventoryItemitem from the underlying collection.booleanRemove 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) voidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetUsers(List<SystemUser> value) toString()
-
Constructor Details
-
LocalDefinitions
public LocalDefinitions() -
LocalDefinitions
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getComponents
-
setComponents
-
addComponent
Add a newSystemComponentitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeComponent
Remove the first matchingSystemComponentitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getInventoryItems
-
setInventoryItems
-
addInventoryItem
Add a newInventoryItemitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeInventoryItem
Remove the first matchingInventoryItemitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getUsers
-
setUsers
-
addUser
Add a newSystemUseritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeUser
Remove the first matchingSystemUseritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getObjectivesAndMethods
-
setObjectivesAndMethods
-
addObjectivesAndMethods
Add a newLocalObjectiveitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeObjectivesAndMethods
Remove the first matchingLocalObjectiveitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getActivities
-
setActivities
-
addActivity
Add a newActivityitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeActivity
Remove the first matchingActivityitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-