Package gov.nist.secauto.oscal.lib.model
Class Modify.Alter
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Modify.Alter
-
- Enclosing class:
- Modify
@MetaschemaAssembly(formalName="Alteration", description="Specifies changes to be made to an included control when a profile is resolved.", name="alter", metaschema=OscalProfileMetaschema.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
Specifies changes to be made to an included control when a profile is resolved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Modify.Alter.Add
Specifies contents to be added into controls, in resolution.static class
Modify.Alter.Remove
Specifies objects to be removed from a control based on specific aspects of the object that must all match.
-
Constructor Summary
Constructors Constructor Description Alter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
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.List<Modify.Alter.Add>
getAdds()
String
getControlId()
List<Modify.Alter.Remove>
getRemoves()
boolean
removeAdd(Modify.Alter.Add item)
Remove the first matchingModify.Alter.Add
item from the underlying collection.boolean
removeRemove(Modify.Alter.Remove item)
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)
String
toString()
-
-
-
Constructor Detail
-
Alter
public Alter()
-
-
Method Detail
-
getControlId
public String getControlId()
-
setControlId
public void setControlId(String value)
-
getRemoves
public List<Modify.Alter.Remove> getRemoves()
-
setRemoves
public void setRemoves(List<Modify.Alter.Remove> value)
-
addRemove
public boolean addRemove(Modify.Alter.Remove item)
Add a newModify.Alter.Remove
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRemove
public boolean removeRemove(Modify.Alter.Remove item)
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
public List<Modify.Alter.Add> getAdds()
-
setAdds
public void setAdds(List<Modify.Alter.Add> value)
-
addAdd
public boolean addAdd(Modify.Alter.Add item)
Add a newModify.Alter.Add
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeAdd
public boolean removeAdd(Modify.Alter.Add item)
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
-
-