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
ConstructorDescriptionProfileSelectControlById
(gov.nist.secauto.metaschema.core.model.IMetaschemaData data) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addMatching
(Matching item) Add a newMatching
item to the underlying collection.boolean
Add a newString
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
boolean
removeMatching
(Matching item) Remove the first matchingMatching
item from the underlying collection.boolean
removeWithId
(String item) Remove the first matchingString
item from the underlying collection.void
setMatching
(List<Matching> value) void
setWithChildControls
(String value) void
setWithIds
(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:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getWithChildControls
- Specified by:
getWithChildControls
in interfaceIProfileSelectControlById
-
setWithChildControls
-
getWithIds
- Specified by:
getWithIds
in interfaceIProfileSelectControlById
-
setWithIds
-
addWithId
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeWithId
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getMatching
- Specified by:
getMatching
in interfaceIProfileSelectControlById
-
setMatching
-
addMatching
Add a newMatching
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeMatching
Remove the first matchingMatching
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-