Package gov.nist.secauto.oscal.lib.model
Class Result
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Result
-
@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", metaschema=OscalArMetaschema.class) public class Result extends ObjectUsed 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 Classes Modifier and Type Class Description static classResult.AssessmentLogA log of all assessment-related actions taken.static classResult.AttestationA set of textual statements, typically written by the assessor.static classResult.LocalDefinitionsUsed to define data objects that are used in the assessment plan, that do not appear in the referenced SSP.
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddAttestation(Result.Attestation item)Add a newResult.Attestationitem to the underlying collection.booleanaddFinding(Finding item)Add a newFindingitem to the underlying collection.booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddObservation(Observation item)Add a newObservationitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddRisk(Risk item)Add a newRiskitem to the underlying collection.Result.AssessmentLoggetAssessmentLog()List<Result.Attestation>getAttestations()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()ZonedDateTimegetEnd()List<Finding>getFindings()List<Link>getLinks()Result.LocalDefinitionsgetLocalDefinitions()List<Observation>getObservations()List<Property>getProps()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()ReviewedControlsgetReviewedControls()List<Risk>getRisks()ZonedDateTimegetStart()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()UUIDgetUuid()booleanremoveAttestation(Result.Attestation item)Remove 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.voidsetAssessmentLog(Result.AssessmentLog value)voidsetAttestations(List<Result.Attestation> value)voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetEnd(ZonedDateTime value)voidsetFindings(List<Finding> value)voidsetLinks(List<Link> value)voidsetLocalDefinitions(Result.LocalDefinitions value)voidsetObservations(List<Observation> value)voidsetProps(List<Property> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetReviewedControls(ReviewedControls value)voidsetRisks(List<Risk> value)voidsetStart(ZonedDateTime value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetUuid(UUID value)StringtoString()
-
-
-
Constructor Detail
-
Result
public Result()
-
-
Method Detail
-
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)
-
getStart
public ZonedDateTime getStart()
-
setStart
public void setStart(ZonedDateTime value)
-
getEnd
public ZonedDateTime getEnd()
-
setEnd
public void setEnd(ZonedDateTime 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
-
getLocalDefinitions
public Result.LocalDefinitions getLocalDefinitions()
-
setLocalDefinitions
public void setLocalDefinitions(Result.LocalDefinitions value)
-
getReviewedControls
public ReviewedControls getReviewedControls()
-
setReviewedControls
public void setReviewedControls(ReviewedControls value)
-
getAttestations
public List<Result.Attestation> getAttestations()
-
setAttestations
public void setAttestations(List<Result.Attestation> value)
-
addAttestation
public boolean addAttestation(Result.Attestation item)
Add a newResult.Attestationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAttestation
public boolean removeAttestation(Result.Attestation item)
Remove the first matchingResult.Attestationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getAssessmentLog
public Result.AssessmentLog getAssessmentLog()
-
setAssessmentLog
public void setAssessmentLog(Result.AssessmentLog value)
-
getObservations
public List<Observation> getObservations()
-
setObservations
public void setObservations(List<Observation> value)
-
addObservation
public boolean addObservation(Observation item)
Add a newObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeObservation
public boolean removeObservation(Observation item)
Remove the first matchingObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addRisk
public boolean addRisk(Risk item)
Add a newRiskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRisk
public boolean removeRisk(Risk item)
Remove the first matchingRiskitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getFindings
public List<Finding> getFindings()
-
setFindings
public void setFindings(List<Finding> value)
-
addFinding
public boolean addFinding(Finding item)
Add a newFindingitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeFinding
public boolean removeFinding(Finding item)
Remove the first matchingFindingitem 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)
-
-