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
ConstructorsConstructorDescriptionLocalDefinitions(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAssessmentTask(Task item) Add a newTaskitem to the underlying collection.booleanaddComponent(SystemComponent item) Add a newSystemComponentitem to the underlying collection.booleanAdd a newInventoryItemitem to the underlying collection.booleanaddUser(SystemUser item) Add a newSystemUseritem to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetTasks()getUsers()booleanremoveAssessmentTask(Task item) Remove the first matchingTaskitem from the underlying collection.booleanRemove the first matchingSystemComponentitem from the underlying collection.booleanRemove the first matchingInventoryItemitem from the underlying collection.booleanremoveUser(SystemUser item) Remove the first matchingSystemUseritem from the underlying collection.voidvoidsetComponents(List<SystemComponent> value) voidsetInventoryItems(List<InventoryItem> value) voidvoidsetUsers(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
-
getAssessmentAssets
-
setAssessmentAssets
-
getTasks
-
setTasks
-
addAssessmentTask
Add a newTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssessmentTask
Remove the first matchingTaskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-