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
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()getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetParts()getProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()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.voidvoidvoidvoidsetParts(List<ControlPart> value) voidsetPosition(String value) voidvoidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) toString()
-
Constructor Details
-
Add
public Add() -
Add
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getPosition
-
setPosition
-
getById
-
setById
-
getTitle
-
setTitle
-
getParams
-
setParams
-
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
-
setProps
-
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
-
setLinks
-
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
-
setParts
-
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
-