Class Result
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
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.Get the "Assessment Log".Get the "Attestation Statements".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Results Description".getEnd()Get the "end field".Get the "Finding".getLinks()Get the "Link".Get the "Local Definitions".dev.metaschema.core.model.IMetaschemaDataGet the "Observation".getProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Reviewed Controls and Control Objectives".getRisks()Get the "Identified Risk".getStart()Get the "start field".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Results Title".getUuid()Get the "Results Universally Unique Identifier".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.voidSet the "Assessment Log".voidsetAttestations(List<Result.Attestation> value) Set the "Attestation Statements".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Results Description".voidsetEnd(ZonedDateTime value) Set the "end field".voidsetFindings(List<Finding> value) Set the "Finding".voidSet the "Link".voidSet the "Local Definitions".voidsetObservations(List<Observation> value) Set the "Observation".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidSet the "Reviewed Controls and Control Objectives".voidSet the "Identified Risk".voidsetStart(ZonedDateTime value) Set the "start field".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Results Title".voidSet the "Results Universally Unique Identifier".toString()
-
Constructor Details
-
Result
public Result()Constructs a newdev.metaschema.oscal.lib.model.Resultinstance with no metadata. -
Result
Constructs a newdev.metaschema.oscal.lib.model.Resultinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getUuid
Get the "Results Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this set of results in this or other OSCAL instances. The locally defined UUID of the
assessment resultcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Returns:
- the uuid value
-
setUuid
Set the "Results Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this set of results in this or other OSCAL instances. The locally defined UUID of the
assessment resultcan be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.- Parameters:
value- the uuid value to set
-
getTitle
Get the "Results Title".The title for this set of results.
- Returns:
- the title value
-
setTitle
Set the "Results Title".The title for this set of results.
- Parameters:
value- the title value to set
-
getDescription
Get the "Results Description".A human-readable description of this set of test results.
- Returns:
- the description value
-
setDescription
Set the "Results Description".A human-readable description of this set of test results.
- Parameters:
value- the description value to set
-
getStart
Get the "start field".Date/time stamp identifying the start of the evidence collection reflected in these results.
- Returns:
- the start value
-
setStart
Set the "start field".Date/time stamp identifying the start of the evidence collection reflected in these results.
- Parameters:
value- the start value to set
-
getEnd
Get the "end field".Date/time stamp identifying the end of the evidence collection reflected in these results. In a continuous motoring scenario, this may contain the same value as start if appropriate.
- Returns:
- the end value, or
nullif not set
-
setEnd
Set the "end field".Date/time stamp identifying the end of the evidence collection reflected in these results. In a continuous motoring scenario, this may contain the same value as start if appropriate.
- Parameters:
value- the end value to set, ornullto clear
-
getProps
Get the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Returns:
- the prop value
-
setProps
Set the "Property".An attribute, characteristic, or quality of the containing object expressed as a namespace qualified name/value pair.
- Parameters:
value- the prop value to set
-
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
Get the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Returns:
- the link value
-
setLinks
Set the "Link".A reference to a local or remote resource, that has a specific relation to the containing object.
- Parameters:
value- the link value to set
-
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
Get the "Local Definitions".Used to define data objects that are used in the assessment plan, that do not appear in the referenced SSP.
- Returns:
- the local-definitions value, or
nullif not set
-
setLocalDefinitions
Set the "Local Definitions".Used to define data objects that are used in the assessment plan, that do not appear in the referenced SSP.
- Parameters:
value- the local-definitions value to set, ornullto clear
-
getReviewedControls
Get the "Reviewed Controls and Control Objectives".Identifies the controls being assessed and their control objectives.
- Returns:
- the reviewed-controls value
-
setReviewedControls
Set the "Reviewed Controls and Control Objectives".Identifies the controls being assessed and their control objectives.
- Parameters:
value- the reviewed-controls value to set
-
getAttestations
Get the "Attestation Statements".A set of textual statements, typically written by the assessor.
- Returns:
- the attestation value
-
setAttestations
Set the "Attestation Statements".A set of textual statements, typically written by the assessor.
- Parameters:
value- the attestation value to set
-
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
Get the "Assessment Log".A log of all assessment-related actions taken.
- Returns:
- the assessment-log value, or
nullif not set
-
setAssessmentLog
Set the "Assessment Log".A log of all assessment-related actions taken.
- Parameters:
value- the assessment-log value to set, ornullto clear
-
getObservations
Get the "Observation".Describes an individual observation.
- Returns:
- the observation value
-
setObservations
Set the "Observation".Describes an individual observation.
- Parameters:
value- the observation value to set
-
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
Get the "Identified Risk".An identified risk.
- Returns:
- the risk value
-
setRisks
Set the "Identified Risk".An identified risk.
- Parameters:
value- the risk value to set
-
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
Get the "Finding".Describes an individual finding.
- Returns:
- the finding value
-
setFindings
Set the "Finding".Describes an individual finding.
- Parameters:
value- the finding value to set
-
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
Get the "Remarks".Additional commentary about the containing object.
- Returns:
- the remarks value, or
nullif not set
-
setRemarks
Set the "Remarks".Additional commentary about the containing object.
- Parameters:
value- the remarks value to set, ornullto clear
-
toString
-