Package gov.nist.secauto.oscal.lib.model
Class Result
java.lang.Object
gov.nist.secauto.oscal.lib.model.Result
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Assessment Result",
description="Used by the assessment results and POA\\&M. In the assessment results, this identifies all of the assessment observations and findings, initial and residual risks, deviations, and disposition. In the POA\\&M, this identifies initial and residual risks, deviations, and disposition.",
name="result",
moduleClass=OscalArModule.class)
public class Result
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Used by the assessment results and POA&M. In the assessment results, this identifies all of the assessment observations and findings, initial and residual risks, deviations, and disposition. In the POA&M, this identifies initial and residual risks, deviations, and disposition.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA log of all assessment-related actions taken.static classA set of textual statements, typically written by the assessor.static classUsed to define data objects that are used in the assessment plan, that do not appear in the referenced SSP. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newResult.Attestationitem to the underlying collection.booleanaddFinding(Finding item) Add a newFindingitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanaddObservation(Observation item) Add a newObservationitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newRiskitem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetEnd()getLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetRisks()getStart()gov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()getUuid()booleanRemove the first matchingResult.Attestationitem from the underlying collection.booleanremoveFinding(Finding item) Remove the first matchingFindingitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveObservation(Observation item) Remove the first matchingObservationitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanremoveRisk(Risk item) Remove the first matchingRiskitem from the underlying collection.voidvoidsetAttestations(List<Result.Attestation> value) voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetEnd(ZonedDateTime value) voidsetFindings(List<Finding> value) voidvoidvoidsetObservations(List<Observation> value) voidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidsetStart(ZonedDateTime value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidtoString()
-
Constructor Details
-
Result
public Result() -
Result
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getStart
-
setStart
-
getEnd
-
setEnd
-
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
-
getLocalDefinitions
-
setLocalDefinitions
-
getReviewedControls
-
setReviewedControls
-
getAttestations
-
setAttestations
-
addAttestation
Add a newResult.Attestationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAttestation
Remove the first matchingResult.Attestationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAssessmentLog
-
setAssessmentLog
-
getObservations
-
setObservations
-
addObservation
Add a newObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeObservation
Remove the first matchingObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRisks
-
setRisks
-
addRisk
Add a newRiskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRisk
Remove the first matchingRiskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getFindings
-
setFindings
-
addFinding
Add a newFindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeFinding
Remove the first matchingFindingitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRemarks
-
setRemarks
-
toString
-