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
Modifier and TypeClassDescriptionstatic class
Specifies changes to be made to an included control when a profile is resolved.static class
A parameter setting, to be propagated to points of insertion. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAlter
(Modify.Alter item) Add a newModify.Alter
item to the underlying collection.boolean
Add a newModify.ProfileSetParameter
item to the underlying collection.gov.nist.secauto.metaschema.core.model.IMetaschemaData
boolean
removeAlter
(Modify.Alter item) Remove the first matchingModify.Alter
item from the underlying collection.boolean
Remove the first matchingModify.ProfileSetParameter
item from the underlying collection.void
setAlters
(List<Modify.Alter> value) void
toString()
-
Constructor Details
-
Modify
public Modify() -
Modify
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getSetParameters
-
setSetParameters
-
addSetParameter
Add a newModify.ProfileSetParameter
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeSetParameter
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
-
setAlters
-
addAlter
Add a newModify.Alter
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAlter
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
-
toString
-