Class Finding
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRelates the finding to a set of referenced risks that were used to determine the finding.static classRelates the finding to a set of referenced observations that were used to determine the finding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newFinding.AssociatedRiskitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newOriginitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newFinding.RelatedObservationitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Finding Description".Get the "Implementation Statement UUID".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "Origin".getProps()Get the "Property".Get the "Related Observation".Get the "Associated Risk".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Objective Status".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Finding Title".getUuid()Get the "Finding Universally Unique Identifier".booleanRemove the first matchingFinding.AssociatedRiskitem from the underlying collection.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 matchingFinding.RelatedObservationitem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Finding Description".voidSet the "Implementation Statement UUID".voidSet the "Link".voidsetOrigins(List<Origin> value) Set the "Origin".voidSet the "Property".voidSet the "Related Observation".voidSet the "Associated Risk".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetTarget(FindingTarget value) Set the "Objective Status".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Finding Title".voidSet the "Finding Universally Unique Identifier".toString()
-
Constructor Details
-
Finding
public Finding()Constructs a newdev.metaschema.oscal.lib.model.Findinginstance with no metadata. -
Finding
Constructs a newdev.metaschema.oscal.lib.model.Findinginstance 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 "Finding Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this finding in this or other OSCAL instances. The locally defined UUID of the
findingcan 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 "Finding Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this finding in this or other OSCAL instances. The locally defined UUID of the
findingcan 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 "Finding Title".The title for this finding.
- Returns:
- the title value
-
setTitle
Set the "Finding Title".The title for this finding.
- Parameters:
value- the title value to set
-
getDescription
Get the "Finding Description".A human-readable description of this finding.
- Returns:
- the description value
-
setDescription
Set the "Finding Description".A human-readable description of this finding.
- Parameters:
value- the description value to set
-
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
-
getOrigins
Get the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Returns:
- the origin value
-
setOrigins
Set the "Origin".Identifies the source of the finding, such as a tool, interviewed person, or activity.
- Parameters:
value- the origin value to set
-
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
-
getTarget
Get the "Objective Status".Captures an assessor's conclusions regarding the degree to which an objective is satisfied.
- Returns:
- the target value
-
setTarget
Set the "Objective Status".Captures an assessor's conclusions regarding the degree to which an objective is satisfied.
- Parameters:
value- the target value to set
-
getImplementationStatementUuid
Get the "Implementation Statement UUID".A machine-oriented identifier reference to the implementation statement in the SSP to which this finding is related.
- Returns:
- the implementation-statement-uuid value, or
nullif not set
-
setImplementationStatementUuid
Set the "Implementation Statement UUID".A machine-oriented identifier reference to the implementation statement in the SSP to which this finding is related.
- Parameters:
value- the implementation-statement-uuid value to set, ornullto clear
-
getRelatedObservations
Get the "Related Observation".Relates the finding to a set of referenced observations that were used to determine the finding.
- Returns:
- the related-observation value
-
setRelatedObservations
Set the "Related Observation".Relates the finding to a set of referenced observations that were used to determine the finding.
- Parameters:
value- the related-observation value to set
-
addRelatedObservation
Add a newFinding.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
Remove the first matchingFinding.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelatedRisks
Get the "Associated Risk".Relates the finding to a set of referenced risks that were used to determine the finding.
- Returns:
- the associated-risk value
-
setRelatedRisks
Set the "Associated Risk".Relates the finding to a set of referenced risks that were used to determine the finding.
- Parameters:
value- the associated-risk value to set
-
addAssociatedRisk
Add a newFinding.AssociatedRiskitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeAssociatedRisk
Remove the first matchingFinding.AssociatedRiskitem 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
-