Package gov.nist.secauto.oscal.lib.model
Class Modify
java.lang.Object
gov.nist.secauto.oscal.lib.model.Modify
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Modify Controls",
description="Set parameters or amend controls in resolution.",
name="modify",
moduleClass=OscalProfileModule.class,
modelConstraints=@AssemblyConstraints(unique=@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
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Set parameters or amend controls in resolution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpecifies changes to be made to an included control when a profile is resolved.static classA parameter setting, to be propagated to points of insertion. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAlter(Modify.Alter item) Add a newModify.Alteritem to the underlying collection.booleanAdd a newModify.ProfileSetParameteritem to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaDatabooleanremoveAlter(Modify.Alter item) Remove the first matchingModify.Alteritem from the underlying collection.booleanRemove the first matchingModify.ProfileSetParameteritem from the underlying collection.voidsetAlters(List<Modify.Alter> value) voidtoString()
-
Constructor Details
-
Modify
public Modify() -
Modify
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getSetParameters
-
setSetParameters
-
addSetParameter
Add a newModify.ProfileSetParameteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSetParameter
Remove the first matchingModify.ProfileSetParameteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAlters
-
setAlters
-
addAlter
Add a newModify.Alteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAlter
Remove the first matchingModify.Alteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-