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
Nested ClassesModifier and TypeClassDescriptionstatic classSpecifies contents to be added into controls, in resolution.static classSpecifies objects to be removed from a control based on specific aspects of the object that must all match. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAdd(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.getAdds()gov.nist.secauto.metaschema.core.model.IMetaschemaDatabooleanremoveAdd(Modify.Alter.Add item) Remove the first matchingModify.Alter.Additem from the underlying collection.booleanRemove the first matchingModify.Alter.Removeitem from the underlying collection.voidsetAdds(List<Modify.Alter.Add> value) voidsetControlId(String value) voidsetRemoves(List<Modify.Alter.Remove> value) toString()
-
Constructor Details
-
Alter
public Alter() -
Alter
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getControlId
-
setControlId
-
getRemoves
-
setRemoves
-
addRemove
Add a newModify.Alter.Removeitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRemove
Remove the first matchingModify.Alter.Removeitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAdds
-
setAdds
-
addAdd
Add a newModify.Alter.Additem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAdd
Remove the first matchingModify.Alter.Additem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-