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 ObjectSpecifies changes to be made to an included control when a profile is resolved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModify.Alter.AddSpecifies contents to be added into controls, in resolution.static classModify.Alter.RemoveSpecifies 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 booleanaddAdd(Modify.Alter.Add item)Add a newModify.Alter.Additem to the underlying collection.booleanaddRemove(Modify.Alter.Remove item)Add a newModify.Alter.Removeitem to the underlying collection.List<Modify.Alter.Add>getAdds()StringgetControlId()List<Modify.Alter.Remove>getRemoves()booleanremoveAdd(Modify.Alter.Add item)Remove the first matchingModify.Alter.Additem from the underlying collection.booleanremoveRemove(Modify.Alter.Remove item)Remove the first matchingModify.Alter.Removeitem from the underlying collection.voidsetAdds(List<Modify.Alter.Add> value)voidsetControlId(String value)voidsetRemoves(List<Modify.Alter.Remove> value)StringtoString()
-
-
-
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.Removeitem 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.Removeitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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.Additem 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.Additem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-