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:
IProfileSelectControlById
@MetaschemaAssembly(formalName="Select Control", description="Select a control or controls from an imported control set.", name="select-control-by-id", metaschema=OscalProfileMetaschema.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
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
Constructors Constructor Description ProfileSelectControlById()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addMatching(Matching item)
Add a newMatching
item to the underlying collection.boolean
addWithId(String item)
Add a newString
item to the underlying collection.List<Matching>
getMatching()
String
getWithChildControls()
List<String>
getWithIds()
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)
String
toString()
-
Methods inherited from class gov.nist.secauto.oscal.lib.model.control.profile.AbstractProfileSelectControlById
builder
-
-
-
-
Constructor Detail
-
ProfileSelectControlById
public ProfileSelectControlById()
-
-
Method Detail
-
getWithChildControls
public String getWithChildControls()
-
setWithChildControls
public void setWithChildControls(String value)
-
getWithIds
public List<String> getWithIds()
-
setWithIds
public void setWithIds(List<String> value)
-
addWithId
public boolean addWithId(String item)
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeWithId
public boolean removeWithId(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
-
getMatching
public List<Matching> getMatching()
-
setMatching
public void setMatching(List<Matching> value)
-
addMatching
public boolean addMatching(Matching item)
Add a newMatching
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeMatching
public boolean removeMatching(Matching item)
Remove the first matchingMatching
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-