Package gov.nist.secauto.oscal.lib.model
Class SelectControlById
java.lang.Object
gov.nist.secauto.oscal.lib.model.SelectControlById
- All Implemented Interfaces:
gov.nist.secauto.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 asessment scope.",
name="select-control-by-id",
moduleClass=OscalAssessmentCommonModule.class)
public class SelectControlById
extends Object
implements gov.nist.secauto.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 asessment scope.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectControlById(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddStatementId(String item) Add a newStringitem to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaDatabooleanremoveStatementId(String item) Remove the first matchingStringitem from the underlying collection.voidsetControlId(String value) voidsetStatementIds(List<String> value) toString()
-
Constructor Details
-
SelectControlById
public SelectControlById() -
SelectControlById
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getControlId
-
setControlId
-
getStatementIds
-
setStatementIds
-
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
-