Package dev.metaschema.oscal.lib.model
Class Modify
java.lang.Object
dev.metaschema.oscal.lib.model.Modify
- All Implemented Interfaces:
dev.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="oscal-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 dev.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.Get the "Alteration".dev.metaschema.core.model.IMetaschemaDataGet the "Parameter Setting".booleanremoveAlter(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) Set the "Alteration".voidSet the "Parameter Setting".toString()
-
Constructor Details
-
Modify
public Modify()Constructs a newdev.metaschema.oscal.lib.model.Modifyinstance with no metadata. -
Modify
Constructs a newdev.metaschema.oscal.lib.model.Modifyinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getSetParameters
Get the "Parameter Setting".A parameter setting, to be propagated to points of insertion.
- Returns:
- the set-parameter value
-
setSetParameters
Set the "Parameter Setting".A parameter setting, to be propagated to points of insertion.
- Parameters:
value- the set-parameter value to set
-
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
Get the "Alteration".Specifies changes to be made to an included control when a profile is resolved.
- Returns:
- the alter value
-
setAlters
Set the "Alteration".Specifies changes to be made to an included control when a profile is resolved.
- Parameters:
value- the alter value to set
-
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
-