Class Modify.Alter
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Modify
-
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()Get the "Addition".Get the "Control Identifier Reference".dev.metaschema.core.model.IMetaschemaDataGet the "Removal".booleanremoveAdd(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) Set the "Addition".voidsetControlId(String value) Set the "Control Identifier Reference".voidsetRemoves(List<Modify.Alter.Remove> value) Set the "Removal".toString()
-
Constructor Details
-
Alter
public Alter()Constructs a newdev.metaschema.oscal.lib.model.Modify.Alterinstance with no metadata. -
Alter
Constructs a newdev.metaschema.oscal.lib.model.Modify.Alterinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getControlId
Get the "Control Identifier Reference".A reference to a control with a corresponding
idvalue. When referencing an externally definedcontrol, theControl Identifier Referencemust be used in the context of the external / imported OSCAL instance (e.g., uri-reference).- Returns:
- the control-id value
-
setControlId
Set the "Control Identifier Reference".A reference to a control with a corresponding
idvalue. When referencing an externally definedcontrol, theControl Identifier Referencemust be used in the context of the external / imported OSCAL instance (e.g., uri-reference).- Parameters:
value- the control-id value to set
-
getRemoves
Get the "Removal".Specifies objects to be removed from a control based on specific aspects of the object that must all match.
- Returns:
- the remove value
-
setRemoves
Set the "Removal".Specifies objects to be removed from a control based on specific aspects of the object that must all match.
- Parameters:
value- the remove value to set
-
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
Get the "Addition".Specifies contents to be added into controls, in resolution.
- Returns:
- the add value
-
setAdds
Set the "Addition".Specifies contents to be added into controls, in resolution.
- Parameters:
value- the add value to set
-
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
-