Package gov.nist.secauto.oscal.lib.model
Class Modify.Alter
java.lang.Object
gov.nist.secauto.oscal.lib.model.Modify.Alter
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
- Enclosing class:
- Modify
@MetaschemaAssembly(formalName="Alteration",
description="Specifies changes to be made to an included control when a profile is resolved.",
name="alter",
moduleClass=OscalProfileModule.class,
remarks="Use `@control-id` to indicate the scope of alteration.\n\nIt is an error for two `alter` elements to apply to the same control. In practice, multiple alterations can be applied (together), but it creates confusion.\n\nAt present, no provision is made for altering many controls at once (for example, to systematically remove properties or add global properties); extending this element to match multiple control IDs could provide for this.")
public static class Modify.Alter
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Specifies changes to be made to an included control when a profile is resolved.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Specifies contents to be added into controls, in resolution.static class
Specifies objects to be removed from a control based on specific aspects of the object that must all match. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAdd
(Modify.Alter.Add item) Add a newModify.Alter.Add
item to the underlying collection.boolean
addRemove
(Modify.Alter.Remove item) Add a newModify.Alter.Remove
item to the underlying collection.getAdds()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
boolean
removeAdd
(Modify.Alter.Add item) Remove the first matchingModify.Alter.Add
item from the underlying collection.boolean
Remove the first matchingModify.Alter.Remove
item from the underlying collection.void
setAdds
(List<Modify.Alter.Add> value) void
setControlId
(String value) void
setRemoves
(List<Modify.Alter.Remove> value) toString()
-
Constructor Details
-
Alter
public Alter() -
Alter
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getControlId
-
setControlId
-
getRemoves
-
setRemoves
-
addRemove
Add a newModify.Alter.Remove
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRemove
Remove the first matchingModify.Alter.Remove
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getAdds
-
setAdds
-
addAdd
Add a newModify.Alter.Add
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAdd
Remove the first matchingModify.Alter.Add
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-