Package gov.nist.secauto.oscal.lib.model
Class Result.LocalDefinitions
java.lang.Object
gov.nist.secauto.oscal.lib.model.Result.LocalDefinitions
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
- 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",
moduleClass=OscalArModule.class,
modelConstraints=@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
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
addAssessmentTask
(Task item) Add a newTask
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
addUser
(SystemUser item) Add a newSystemUser
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
getTasks()
getUsers()
boolean
removeAssessmentTask
(Task item) Remove the first matchingTask
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
removeUser
(SystemUser item) Remove the first matchingSystemUser
item from the underlying collection.void
void
setComponents
(List<SystemComponent> value) void
setInventoryItems
(List<InventoryItem> value) void
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
-
getAssessmentAssets
-
setAssessmentAssets
-
getTasks
-
setTasks
-
addAssessmentTask
Add a newTask
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAssessmentTask
Remove the first matchingTask
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-