Package dev.metaschema.oscal.lib.model
Class SelectControlByIdOscalAssessmentCommon
java.lang.Object
dev.metaschema.oscal.lib.model.SelectControlByIdOscalAssessmentCommon
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Select Control",
description="Used to select a control for inclusion/exclusion based on one or more control identifiers. A set of statement identifiers can be used to target the inclusion/exclusion to only specific control statements providing more granularity over the specific statements that are within the assessment scope.",
name="select-control-by-id",
moduleClass=OscalAssessmentCommonModule.class)
public class SelectControlByIdOscalAssessmentCommon
extends Object
implements dev.metaschema.core.model.IBoundObject
Used to select a control for inclusion/exclusion based on one or more control identifiers. A set of statement identifiers can be used to target the inclusion/exclusion to only specific control statements providing more granularity over the specific statements that are within the assessment scope.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.SelectControlByIdOscalAssessmentCommoninstance with no metadata.SelectControlByIdOscalAssessmentCommon(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.SelectControlByIdOscalAssessmentCommoninstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddStatementId(String item) Add a newStringitem to the underlying collection.Get the "Control Identifier Reference".dev.metaschema.core.model.IMetaschemaDataGet the "Include Specific Statements".booleanremoveStatementId(String item) Remove the first matchingStringitem from the underlying collection.voidsetControlId(String value) Set the "Control Identifier Reference".voidsetStatementIds(List<String> value) Set the "Include Specific Statements".toString()
-
Constructor Details
-
SelectControlByIdOscalAssessmentCommon
Constructs a newdev.metaschema.oscal.lib.model.SelectControlByIdOscalAssessmentCommoninstance with no metadata. -
SelectControlByIdOscalAssessmentCommon
Constructs a newdev.metaschema.oscal.lib.model.SelectControlByIdOscalAssessmentCommoninstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getControlId
Get the "Control Identifier Reference".A reference to a control with a corresponding
idvalue. When referencing an externally definedcontrol, theControl Identifier Referencemust be used in the context of the external / imported OSCAL instance (e.g., uri-reference).- Returns:
- the control-id value
-
setControlId
Set the "Control Identifier Reference".A reference to a control with a corresponding
idvalue. When referencing an externally definedcontrol, theControl Identifier Referencemust be used in the context of the external / imported OSCAL instance (e.g., uri-reference).- Parameters:
value- the control-id value to set
-
getStatementIds
Get the "Include Specific Statements".Used to constrain the selection to only specificity identified statements.
- Returns:
- the statement-id value
-
setStatementIds
Set the "Include Specific Statements".Used to constrain the selection to only specificity identified statements.
- Parameters:
value- the statement-id value to set
-
addStatementId
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeStatementId
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-