Package gov.nist.secauto.oscal.lib.model
Class Response
java.lang.Object
gov.nist.secauto.oscal.lib.model.Response
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Risk Response",
description="Describes either recommended or an actual plan for addressing the risk.",
name="response",
moduleClass=OscalAssessmentCommonModule.class,
valueConstraints=@AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values=@AllowedValue(value="type",description="Risk Response Type")) @AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'type\']/@value",values={@AllowedValue(value="avoid",description="The risk will be eliminated."),@AllowedValue(value="mitigate",description="The risk will be reduced."),@AllowedValue(value="transfer",description="The risk will be transferred to another organization or entity."),@AllowedValue(value="accept",description="The risk will continue to exist without further efforts to address it. (Sometimes referred to as \"Operationally required\")"),@AllowedValue(value="share",description="The risk will be partially transferred to another organization or entity."),@AllowedValue(value="contingency",description="Plans will be made to address the risk impact if the risk occurs. (This is a form of mitigation.)"),@AllowedValue(value="none",description="No response, such as when the identified risk is found to be a false positive.")}))
public class Response
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Describes either recommended or an actual plan for addressing the risk.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Identifies an asset required to achieve remediation. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newLink
item to the underlying collection.boolean
Add a newOrigin
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.boolean
Add a newResponse.RequiredAsset
item to the underlying collection.boolean
Add a newTask
item to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getTasks()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
getUuid()
boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
removeOrigin
(Origin item) Remove the first matchingOrigin
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.boolean
Remove the first matchingResponse.RequiredAsset
item from the underlying collection.boolean
removeTask
(Task item) Remove the first matchingTask
item from the underlying collection.void
setDescription
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setLifecycle
(String value) void
void
setOrigins
(List<Origin> value) void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
void
void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
toString()
-
Constructor Details
-
Response
public Response() -
Response
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getLifecycle
-
setLifecycle
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
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
-
getOrigins
-
setOrigins
-
addOrigin
Add a newOrigin
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingOrigin
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRequiredAssets
-
setRequiredAssets
-
addRequiredAsset
Add a newResponse.RequiredAsset
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRequiredAsset
Remove the first matchingResponse.RequiredAsset
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getTasks
-
setTasks
-
addTask
Add a newTask
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeTask
Remove the first matchingTask
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRemarks
-
setRemarks
-
toString
-