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 Object
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
Constructors Constructor Description SelectControlById()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addStatementId(String item)
Add a newString
item to the underlying collection.String
getControlId()
List<String>
getStatementIds()
boolean
removeStatementId(String item)
Remove the first matchingString
item from the underlying collection.void
setControlId(String value)
void
setStatementIds(List<String> value)
String
toString()
-
-
-
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 newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeStatementId
public boolean removeStatementId(String item)
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-