Package gov.nist.secauto.oscal.lib.model
Class ProfileSelectControlById
java.lang.Object
gov.nist.secauto.oscal.lib.model.control.profile.AbstractProfileSelectControlById
gov.nist.secauto.oscal.lib.model.ProfileSelectControlById
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject,IProfileSelectControlById
@MetaschemaAssembly(formalName="Select Control",
description="Select a control or controls from an imported control set.",
name="select-control-by-id",
moduleClass=OscalProfileModule.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 ProfileSelectControlById
extends AbstractProfileSelectControlById
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Select a control or controls from an imported control set.
-
Nested Class Summary
Nested classes/interfaces inherited from class gov.nist.secauto.oscal.lib.model.control.profile.AbstractProfileSelectControlById
AbstractProfileSelectControlById.Builder -
Constructor Summary
ConstructorsConstructorDescriptionProfileSelectControlById(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMatching(Matching item) Add a newMatchingitem to the underlying collection.booleanAdd a newStringitem to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaDatabooleanremoveMatching(Matching item) Remove the first matchingMatchingitem from the underlying collection.booleanremoveWithId(String item) Remove the first matchingStringitem from the underlying collection.voidsetMatching(List<Matching> value) voidsetWithChildControls(String value) voidsetWithIds(List<String> value) toString()Methods inherited from class gov.nist.secauto.oscal.lib.model.control.profile.AbstractProfileSelectControlById
builder
-
Constructor Details
-
ProfileSelectControlById
public ProfileSelectControlById() -
ProfileSelectControlById
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getWithChildControls
- Specified by:
getWithChildControlsin interfaceIProfileSelectControlById
-
setWithChildControls
-
getWithIds
- Specified by:
getWithIdsin interfaceIProfileSelectControlById
-
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
- Specified by:
getMatchingin interfaceIProfileSelectControlById
-
setMatching
-
addMatching
Add a newMatchingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMatching
Remove the first matchingMatchingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-