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="Select a control or controls from an imported control set.",
name="select-control-by-id",
moduleClass=OscalMappingCommonModule.class,
remarks="If `with-child-controls` is \"yes\" on the call to a control, no sibling `call`elements need to be used to call any controls appearing within it. Since generally, this is how control enhancements are represented (as controls within controls), this provides a way to include controls with all their dependent controls (enhancements) without having to call them individually.")
public class SelectControlById
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Select a control or controls from an imported control set.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectControlById(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newMappedControlMatchingitem to the underlying collection.booleanAdd a newStringitem to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaDatabooleanRemove the first matchingMappedControlMatchingitem from the underlying collection.booleanremoveWithId(String item) Remove the first matchingStringitem from the underlying collection.voidsetMatching(List<MappedControlMatching> value) voidsetWithChildControls(String value) voidsetWithIds(List<String> value) toString()
-
Constructor Details
-
SelectControlById
public SelectControlById() -
SelectControlById
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getWithChildControls
-
setWithChildControls
-
getWithIds
-
setWithIds
-
addWithId
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeWithId
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMatching
-
setMatching
-
addMatching
Add a newMappedControlMatchingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMatching
Remove the first matchingMappedControlMatchingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-