Package gov.nist.secauto.oscal.lib.model
Class Modify.Alter.Add
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Modify.Alter.Add
-
- Enclosing class:
- Modify.Alter
@MetaschemaAssembly(formalName="Addition", description="Specifies contents to be added into controls, in resolution.", name="add", metaschema=OscalProfileMetaschema.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(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 ObjectSpecifies contents to be added into controls, in resolution.
-
-
Constructor Summary
Constructors Constructor Description Add()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddParam(Parameter item)Add a newParameteritem to the underlying collection.booleanaddPart(ControlPart item)Add a newControlPartitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.StringgetById()List<Link>getLinks()List<Parameter>getParams()List<ControlPart>getParts()StringgetPosition()List<Property>getProps()gov.nist.secauto.metaschema.model.common.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.voidsetById(String value)voidsetLinks(List<Link> value)voidsetParams(List<Parameter> value)voidsetParts(List<ControlPart> value)voidsetPosition(String value)voidsetProps(List<Property> value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)StringtoString()
-
-
-
Constructor Detail
-
Add
public Add()
-
-
Method Detail
-
getPosition
public String getPosition()
-
setPosition
public void setPosition(String value)
-
getTitle
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine getTitle()
-
setTitle
public void setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
-
addParam
public boolean addParam(Parameter item)
Add a newParameteritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeParam
public boolean removeParam(Parameter item)
Remove the first matchingParameteritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addProp
public boolean addProp(Property item)
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getParts
public List<ControlPart> getParts()
-
setParts
public void setParts(List<ControlPart> value)
-
addPart
public boolean addPart(ControlPart item)
Add a newControlPartitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removePart
public boolean removePart(ControlPart item)
Remove the first matchingControlPartitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
-