Package dev.metaschema.oscal.lib.model
Class Modify.Alter.Remove
java.lang.Object
dev.metaschema.oscal.lib.model.Modify.Alter.Remove
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Modify.Alter
@MetaschemaAssembly(formalName="Removal",
description="Specifies objects to be removed from a control based on specific aspects of the object that must all match.",
name="remove",
moduleClass=OscalProfileModule.class,
remarks="Use `by-name`, `by-class`, `by-id` or `by-item-name` to indicate class tokens or ID reference, or the formal name, of the component to be removed or erased from a control, when a catalog is resolved. The control affected is indicated by the pointer on the removal\'s parent (containing) `alter` element.\n\nTo change an element, use `remove` to remove the element, then `add` to add it back again with changes.")
public static class Modify.Alter.Remove
extends Object
implements dev.metaschema.core.model.IBoundObject
Specifies 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 TypeMethodDescriptionGet the "Reference by class".getById()Get the "Reference by ID".Get the "Item Name Reference".Get the "Reference by (assigned) name".getByNs()Get the "Item Namespace Reference".dev.metaschema.core.model.IMetaschemaDatavoidsetByClass(String value) Set the "Reference by class".voidSet the "Reference by ID".voidsetByItemName(String value) Set the "Item Name Reference".voidSet the "Reference by (assigned) name".voidSet the "Item Namespace Reference".toString()
-
Constructor Details
-
Remove
public Remove()Constructs a newdev.metaschema.oscal.lib.model.Modify.Alter.Removeinstance with no metadata. -
Remove
Constructs a newdev.metaschema.oscal.lib.model.Modify.Alter.Removeinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getByName
Get the "Reference by (assigned) name".Identify items remove by matching their assigned name.
- Returns:
- the by-name value, or
nullif not set
-
setByName
Set the "Reference by (assigned) name".Identify items remove by matching their assigned name.
- Parameters:
value- the by-name value to set, ornullto clear
-
getByClass
Get the "Reference by class".Identify items to remove by matching their
class.- Returns:
- the by-class value, or
nullif not set
-
setByClass
Set the "Reference by class".Identify items to remove by matching their
class.- Parameters:
value- the by-class value to set, ornullto clear
-
getById
Get the "Reference by ID".Identify items to remove indicated by their
id.- Returns:
- the by-id value, or
nullif not set
-
setById
Set the "Reference by ID".Identify items to remove indicated by their
id.- Parameters:
value- the by-id value to set, ornullto clear
-
getByItemName
Get the "Item Name Reference".Identify items to remove by the name of the item's information object name, e.g.
titleorprop.- Returns:
- the by-item-name value, or
nullif not set
-
setByItemName
Set the "Item Name Reference".Identify items to remove by the name of the item's information object name, e.g.
titleorprop.- Parameters:
value- the by-item-name value to set, ornullto clear
-
getByNs
Get the "Item Namespace Reference".Identify items to remove by the item's
ns, which is the namespace associated with apart, orprop.- Returns:
- the by-ns value, or
nullif not set
-
setByNs
Set the "Item Namespace Reference".Identify items to remove by the item's
ns, which is the namespace associated with apart, orprop.- Parameters:
value- the by-ns value to set, ornullto clear
-
toString
-