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
ConstructorDescriptionLocalDefinitions
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addActivity
(Activity item) Add a newActivity
item to the underlying collection.boolean
addComponent
(SystemComponent item) Add a newSystemComponent
item to the underlying collection.boolean
Add a newInventoryItem
item to the underlying collection.boolean
Add a newLocalObjective
item to the underlying collection.boolean
addUser
(SystemUser item) Add a newSystemUser
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getUsers()
boolean
removeActivity
(Activity item) Remove the first matchingActivity
item from the underlying collection.boolean
Remove the first matchingSystemComponent
item from the underlying collection.boolean
Remove the first matchingInventoryItem
item from the underlying collection.boolean
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
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setUsers
(List<SystemUser> value) toString()
-
Constructor Details
-
LocalDefinitions
public LocalDefinitions() -
LocalDefinitions
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getComponents
-
setComponents
-
addComponent
Add a newSystemComponent
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeComponent
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
-
setInventoryItems
-
addInventoryItem
Add a newInventoryItem
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeInventoryItem
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
-
setUsers
-
addUser
Add a newSystemUser
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeUser
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
-
setObjectivesAndMethods
-
addObjectivesAndMethods
Add a newLocalObjective
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeObjectivesAndMethods
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
-
setActivities
-
addActivity
Add a newActivity
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeActivity
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
-
setRemarks
-
toString
-