Package dev.metaschema.oscal.lib.model
Class AssessmentAssets
java.lang.Object
dev.metaschema.oscal.lib.model.AssessmentAssets
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Assessment Assets",
description="Identifies the assets used to perform this assessment, such as the assessment team, scanning tools, and assumptions.",
name="assessment-assets",
moduleClass=OscalAssessmentCommonModule.class,
modelConstraints=@AssemblyConstraints(unique=@IsUnique(id="oscal-unique-ssp-assessment-assets-component",level=ERROR,target="component",keyFields=@KeyField(target="@uuid"),remarks="Since multiple assessment `component` entries can be provided, each component must have a unique `uuid`.")))
public class AssessmentAssets
extends Object
implements dev.metaschema.core.model.IBoundObject
Identifies the assets used to perform this assessment, such as the assessment team, scanning tools, and assumptions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to represent the toolset used to perform aspects of the assessment. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.AssessmentAssetsinstance with no metadata.AssessmentAssets(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.AssessmentAssetsinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newAssessmentAssets.AssessmentPlatformitem to the underlying collection.booleanaddComponent(SystemComponent item) Add a newSystemComponentitem to the underlying collection.Get the "Assessment Platform".Get the "Component".dev.metaschema.core.model.IMetaschemaDatabooleanRemove the first matchingAssessmentAssets.AssessmentPlatformitem from the underlying collection.booleanRemove the first matchingSystemComponentitem from the underlying collection.voidSet the "Assessment Platform".voidsetComponents(List<SystemComponent> value) Set the "Component".toString()
-
Constructor Details
-
AssessmentAssets
public AssessmentAssets()Constructs a newdev.metaschema.oscal.lib.model.AssessmentAssetsinstance with no metadata. -
AssessmentAssets
Constructs a newdev.metaschema.oscal.lib.model.AssessmentAssetsinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getComponents
Get the "Component".A defined component that can be part of an implemented system.
- Returns:
- the component value
-
setComponents
Set the "Component".A defined component that can be part of an implemented system.
- Parameters:
value- the component value to set
-
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
-
getAssessmentPlatforms
Get the "Assessment Platform".Used to represent the toolset used to perform aspects of the assessment.
- Returns:
- the assessment-platform value
-
setAssessmentPlatforms
Set the "Assessment Platform".Used to represent the toolset used to perform aspects of the assessment.
- Parameters:
value- the assessment-platform value to set
-
addAssessmentPlatform
Add a newAssessmentAssets.AssessmentPlatformitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssessmentPlatform
Remove the first matchingAssessmentAssets.AssessmentPlatformitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-