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 ObjectSet parameters or amend controls in resolution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModify.AlterSpecifies changes to be made to an included control when a profile is resolved.static classModify.ProfileSetParameterA 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 booleanaddAlter(Modify.Alter item)Add a newModify.Alteritem to the underlying collection.booleanaddSetParameter(Modify.ProfileSetParameter item)Add a newModify.ProfileSetParameteritem to the underlying collection.List<Modify.Alter>getAlters()List<Modify.ProfileSetParameter>getSetParameters()booleanremoveAlter(Modify.Alter item)Remove the first matchingModify.Alteritem from the underlying collection.booleanremoveSetParameter(Modify.ProfileSetParameter item)Remove the first matchingModify.ProfileSetParameteritem from the underlying collection.voidsetAlters(List<Modify.Alter> value)voidsetSetParameters(List<Modify.ProfileSetParameter> value)StringtoString()
-
-
-
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.ProfileSetParameteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSetParameter
public boolean removeSetParameter(Modify.ProfileSetParameter item)
Remove the first matchingModify.ProfileSetParameteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAlters
public List<Modify.Alter> getAlters()
-
setAlters
public void setAlters(List<Modify.Alter> value)
-
addAlter
public boolean addAlter(Modify.Alter item)
Add a newModify.Alteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAlter
public boolean removeAlter(Modify.Alter item)
Remove the first matchingModify.Alteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-