Class LocalObjective
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.LocalObjectiveinstance with no metadata.LocalObjective(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.LocalObjectiveinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanaddPart(ControlPart item) Add a newControlPartitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.Get the "Control Identifier Reference".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Objective Description".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetParts()Get the "Part".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".booleanremoveLink(Link item) Remove the first matchingLinkitem 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.voidsetControlId(String value) Set the "Control Identifier Reference".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Objective Description".voidSet the "Link".voidsetParts(List<ControlPart> value) Set the "Part".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".toString()
-
Constructor Details
-
LocalObjective
public LocalObjective()Constructs a newdev.metaschema.oscal.lib.model.LocalObjectiveinstance with no metadata. -
LocalObjective
Constructs a newdev.metaschema.oscal.lib.model.LocalObjectiveinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getControlId
Get the "Control Identifier Reference".A reference to a control with a corresponding
idvalue. When referencing an externally definedcontrol, theControl Identifier Referencemust be used in the context of the external / imported OSCAL instance (e.g., uri-reference).- Returns:
- the control-id value
-
setControlId
Set the "Control Identifier Reference".A reference to a control with a corresponding
idvalue. When referencing an externally definedcontrol, theControl Identifier Referencemust be used in the context of the external / imported OSCAL instance (e.g., uri-reference).- Parameters:
value- the control-id value to set
-
getDescription
Get the "Objective Description".A human-readable description of this control objective.
- Returns:
- the description value, or
nullif not set
-
setDescription
Set the "Objective Description".A human-readable description of this control objective.
- Parameters:
value- the description value to set, ornullto clear
-
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
-
getRemarks
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-