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
ConstructorDescriptionSelectControlById
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addStatementId
(String item) Add a newString
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
boolean
removeStatementId
(String item) Remove the first matchingString
item from the underlying collection.void
setControlId
(String value) void
setStatementIds
(List<String> value) toString()
-
Constructor Details
-
SelectControlById
public SelectControlById() -
SelectControlById
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getControlId
-
setControlId
-
getStatementIds
-
setStatementIds
-
addStatementId
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeStatementId
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-