Package gov.nist.secauto.oscal.lib.model
Class SelectControlById
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.SelectControlById
-
@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", metaschema=OscalAssessmentCommonMetaschema.class) public class SelectControlById extends ObjectUsed 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
Constructors Constructor Description SelectControlById()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddStatementId(String item)Add a newStringitem to the underlying collection.StringgetControlId()List<String>getStatementIds()booleanremoveStatementId(String item)Remove the first matchingStringitem from the underlying collection.voidsetControlId(String value)voidsetStatementIds(List<String> value)StringtoString()
-
-
-
Constructor Detail
-
SelectControlById
public SelectControlById()
-
-
Method Detail
-
getControlId
public String getControlId()
-
setControlId
public void setControlId(String value)
-
getStatementIds
public List<String> getStatementIds()
-
setStatementIds
public void setStatementIds(List<String> value)
-
addStatementId
public boolean addStatementId(String item)
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeStatementId
public boolean removeStatementId(String item)
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-