Package gov.nist.secauto.oscal.lib.model
Class Modify
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Modify
-
@MetaschemaAssembly(formalName="Modify Controls", description="Set parameters or amend controls in resolution.", name="modify", metaschema=OscalProfileMetaschema.class) @AssemblyConstraints(isUnique=@IsUnique(id="unique-profile-modify-set-parameter",level=ERROR,target="set-parameter",keyFields=@KeyField(target="@param-id"),remarks="Since multiple `set-parameter` entries can be provided, each parameter must be set only once.")) public class Modify extends Object
Set parameters or amend controls in resolution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Modify.Alter
Specifies changes to be made to an included control when a profile is resolved.static class
Modify.ProfileSetParameter
A parameter setting, to be propagated to points of insertion.
-
Constructor Summary
Constructors Constructor Description Modify()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addAlter(Modify.Alter item)
Add a newModify.Alter
item to the underlying collection.boolean
addSetParameter(Modify.ProfileSetParameter item)
Add a newModify.ProfileSetParameter
item to the underlying collection.List<Modify.Alter>
getAlters()
List<Modify.ProfileSetParameter>
getSetParameters()
boolean
removeAlter(Modify.Alter item)
Remove the first matchingModify.Alter
item from the underlying collection.boolean
removeSetParameter(Modify.ProfileSetParameter item)
Remove the first matchingModify.ProfileSetParameter
item from the underlying collection.void
setAlters(List<Modify.Alter> value)
void
setSetParameters(List<Modify.ProfileSetParameter> value)
String
toString()
-
-
-
Constructor Detail
-
Modify
public Modify()
-
-
Method Detail
-
getSetParameters
public List<Modify.ProfileSetParameter> getSetParameters()
-
setSetParameters
public void setSetParameters(List<Modify.ProfileSetParameter> value)
-
addSetParameter
public boolean addSetParameter(Modify.ProfileSetParameter item)
Add a newModify.ProfileSetParameter
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeSetParameter
public boolean removeSetParameter(Modify.ProfileSetParameter item)
Remove the first matchingModify.ProfileSetParameter
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getAlters
public List<Modify.Alter> getAlters()
-
setAlters
public void setAlters(List<Modify.Alter> value)
-
addAlter
public boolean addAlter(Modify.Alter item)
Add a newModify.Alter
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAlter
public boolean removeAlter(Modify.Alter item)
Remove the first matchingModify.Alter
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
-