Class Response
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIdentifies an asset required to achieve remediation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newOriginitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newResponse.RequiredAssetitem to the underlying collection.booleanAdd a newTaskitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Response Description".Get the "Remediation Intent".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "Origin".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Required Asset".getTasks()Get the "Task".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Response Title".getUuid()Get the "Remediation Universally Unique Identifier".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveOrigin(Origin item) Remove the first matchingOriginitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingResponse.RequiredAssetitem from the underlying collection.booleanremoveTask(Task item) Remove the first matchingTaskitem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Response Description".voidsetLifecycle(String value) Set the "Remediation Intent".voidSet the "Link".voidsetOrigins(List<Origin> value) Set the "Origin".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Required Asset".voidSet the "Task".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Response Title".voidSet the "Remediation Universally Unique Identifier".toString()
-
Constructor Details
-
Response
public Response()Constructs a newdev.metaschema.oscal.lib.model.Responseinstance with no metadata. -
Response
Constructs a newdev.metaschema.oscal.lib.model.Responseinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Remediation Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this remediation elsewhere in this or other OSCAL instances. The locally defined UUID of the
risk responsecan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Returns:
- the uuid value
-
setUuid
Set the "Remediation Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this remediation elsewhere in this or other OSCAL instances. The locally defined UUID of the
risk responsecan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Parameters:
value- the uuid value to set
-
getLifecycle
Get the "Remediation Intent".Identifies whether this is a recommendation, such as from an assessor or tool, or an actual plan accepted by the system owner.
- Returns:
- the lifecycle value
-
setLifecycle
Set the "Remediation Intent".Identifies whether this is a recommendation, such as from an assessor or tool, or an actual plan accepted by the system owner.
- Parameters:
value- the lifecycle value to set
-
getTitle
Get the "Response Title".The title for this response activity.
- Returns:
- the title value
-
setTitle
Set the "Response Title".The title for this response activity.
- Parameters:
value- the title value to set
-
getDescription
Get the "Response Description".A human-readable description of this response plan.
- Returns:
- the description value
-
setDescription
Set the "Response Description".A human-readable description of this response plan.
- Parameters:
value- the description value to set
-
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
-
getOrigins
Get the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Returns:
- the origin value
-
setOrigins
Set the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Parameters:
value- the origin value to set
-
addOrigin
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRequiredAssets
Get the "Required Asset".Identifies an asset required to achieve remediation.
- Returns:
- the required-asset value
-
setRequiredAssets
Set the "Required Asset".Identifies an asset required to achieve remediation.
- Parameters:
value- the required-asset value to set
-
addRequiredAsset
Add a newResponse.RequiredAssetitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRequiredAsset
Remove the first matchingResponse.RequiredAssetitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTasks
Get the "Task".Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
- Returns:
- the task value
-
setTasks
Set the "Task".Represents a scheduled event or milestone, which may be associated with a series of assessment actions.
- Parameters:
value- the task value to set
-
addTask
Add a newTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTask
Remove the first matchingTaskitem 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
-