Package gov.nist.secauto.oscal.lib.model
Class Response
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Response
-
@MetaschemaAssembly(formalName="Risk Response", description="Describes either recommended or an actual plan for addressing the risk.", name="response", metaschema=OscalAssessmentCommonMetaschema.class) @AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values=@AllowedValue(value="type",description="")) @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 ObjectDescribes either recommended or an actual plan for addressing the risk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResponse.RequiredAssetIdentifies an asset required to achieve remediation.
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddOrigin(Origin item)Add a newOriginitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddRequiredAsset(Response.RequiredAsset item)Add a newResponse.RequiredAssetitem to the underlying collection.booleanaddTask(Task item)Add a newTaskitem to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()StringgetLifecycle()List<Link>getLinks()List<Origin>getOrigins()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()List<Response.RequiredAsset>getRequiredAssets()List<Task>getTasks()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()UUIDgetUuid()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.booleanremoveRequiredAsset(Response.RequiredAsset item)Remove the first matchingResponse.RequiredAssetitem from the underlying collection.booleanremoveTask(Task item)Remove the first matchingTaskitem from the underlying collection.voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetLifecycle(String value)voidsetLinks(List<Link> value)voidsetOrigins(List<Origin> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetRequiredAssets(List<Response.RequiredAsset> value)voidsetTasks(List<Task> value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Response
public Response()
-
-
Method Detail
-
getLifecycle
public String getLifecycle()
-
setLifecycle
public void setLifecycle(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)
-
getDescription
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getDescription()
-
setDescription
public void setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
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
-
getOrigins
public List<Origin> getOrigins()
-
setOrigins
public void setOrigins(List<Origin> value)
-
addOrigin
public boolean addOrigin(Origin item)
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(Origin item)
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRequiredAssets
public List<Response.RequiredAsset> getRequiredAssets()
-
setRequiredAssets
public void setRequiredAssets(List<Response.RequiredAsset> value)
-
addRequiredAsset
public boolean addRequiredAsset(Response.RequiredAsset item)
Add a newResponse.RequiredAssetitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRequiredAsset
public boolean removeRequiredAsset(Response.RequiredAsset item)
Remove the first matchingResponse.RequiredAssetitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addTask
public boolean addTask(Task item)
Add a newTaskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTask
public boolean removeTask(Task item)
Remove the first matchingTaskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-