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
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.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetTasks()gov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()getUuid()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(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetLifecycle(String value) voidvoidsetOrigins(List<Origin> value) voidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidtoString()
-
Constructor Details
-
Response
public Response() -
Response
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getLifecycle
-
setLifecycle
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
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
-
getOrigins
-
setOrigins
-
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
-
setRequiredAssets
-
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
-
setTasks
-
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
-
setRemarks
-
toString
-