Package gov.nist.secauto.oscal.lib.model
Class Modify.Alter.Add
java.lang.Object
gov.nist.secauto.oscal.lib.model.Modify.Alter.Add
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
- Enclosing class:
- Modify.Alter
@MetaschemaAssembly(formalName="Addition",
description="Specifies contents to be added into controls, in resolution.",
name="add",
moduleClass=OscalProfileModule.class,
remarks="When no `by-id` is given, the addition is inserted into the control targeted by the alteration at the start or end as indicated by `position`. Only `position` values of \"starting\" or \"ending\" are permitted when there is no `by-id`.\n\n`by-id`, when given, should indicate, by its ID, an element inside the control to serve as the anchor point for the addition. In this case, `position` value may be any of the permitted values.",
valueConstraints=@ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values={@AllowedValue(value="label",description="A human-readable label for the parent context, which may be rendered in place of the actual identifier for some use cases."),@AllowedValue(value="sort-id",description="An alternative identifier, whose value is easily sortable among other such values in the document."),@AllowedValue(value="alt-identifier",description="An alternate or aliased identifier for the parent context.")})))
public static class Modify.Alter.Add
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Specifies contents to be added into controls, in resolution.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newLink
item to the underlying collection.boolean
Add a newParameter
item to the underlying collection.boolean
addPart
(ControlPart item) Add a newControlPart
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.getById()
getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getParts()
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
removeParam
(Parameter item) Remove the first matchingParameter
item from the underlying collection.boolean
removePart
(ControlPart item) Remove the first matchingControlPart
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.void
void
void
void
setParts
(List<ControlPart> value) void
setPosition
(String value) void
void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) toString()
-
Constructor Details
-
Add
public Add() -
Add
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getPosition
-
setPosition
-
getById
-
setById
-
getTitle
-
setTitle
-
getParams
-
setParams
-
addParam
Add a newParameter
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeParam
Remove the first matchingParameter
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getParts
-
setParts
-
addPart
Add a newControlPart
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removePart
Remove the first matchingControlPart
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-