Class Modify.Alter.Add
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Modify.Alter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newParameteritem to the underlying collection.booleanaddPart(ControlPart item) Add a newControlPartitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.getById()Get the "Reference by ID".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "Parameter".getParts()Get the "Part".Get the "Position".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Title Change".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveParam(Parameter item) Remove the first matchingParameteritem from the underlying collection.booleanremovePart(ControlPart item) Remove the first matchingControlPartitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidSet the "Reference by ID".voidSet the "Link".voidSet the "Parameter".voidsetParts(List<ControlPart> value) Set the "Part".voidsetPosition(String value) Set the "Position".voidSet the "Property".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Title Change".toString()
-
Constructor Details
-
Add
public Add()Constructs a newdev.metaschema.oscal.lib.model.Modify.Alter.Addinstance with no metadata. -
Add
Constructs a newdev.metaschema.oscal.lib.model.Modify.Alter.Addinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getPosition
Get the "Position".Where to add the new content with respect to the targeted element (beside it or inside it).
- Returns:
- the position value, or
nullif not set
-
setPosition
Set the "Position".Where to add the new content with respect to the targeted element (beside it or inside it).
- Parameters:
value- the position value to set, ornullto clear
-
getById
Get the "Reference by ID".Target location of the addition.
- Returns:
- the by-id value, or
nullif not set
-
setById
Set the "Reference by ID".Target location of the addition.
- Parameters:
value- the by-id value to set, ornullto clear
-
getTitle
Get the "Title Change".A name given to the control, which may be used by a tool for display and navigation.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Title Change".A name given to the control, which may be used by a tool for display and navigation.
- Parameters:
value- the title value to set, ornullto clear
-
getParams
Get the "Parameter".Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
- Returns:
- the param value
-
setParams
Set the "Parameter".Parameters provide a mechanism for the dynamic assignment of value(s) in a control.
- Parameters:
value- the param value to set
-
addParam
Add a newParameteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeParam
Remove the first matchingParameteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getParts
Get the "Part".An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
- Returns:
- the part value
-
setParts
Set the "Part".An annotated, markup-based textual element of a control's or catalog group's definition, or a child of another part.
- Parameters:
value- the part value to set
-
addPart
Add a newControlPartitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePart
Remove the first matchingControlPartitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-