Class Observation
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLinks this observation to relevant evidence. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.Observationinstance with no metadata.Observation(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.Observationinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newStringitem to the underlying collection.booleanAdd a newOriginitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newObservation.RelevantEvidenceitem to the underlying collection.booleanaddSubject(SubjectReference item) Add a newSubjectReferenceitem to the underlying collection.booleanAdd a newStringitem to the underlying collection.Get the "Collected Field".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Observation Description".Get the "Expires Field".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDataGet the "Observation Method".Get the "Origin".getProps()Get the "Property".Get the "Relevant Evidence".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".Get the "Identifies the Subject".dev.metaschema.core.datatype.markup.MarkupLinegetTitle()Get the "Observation Title".getTypes()Get the "Observation Type".getUuid()Get the "Observation Universally Unique Identifier".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveMethod(String item) Remove the first matchingStringitem 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 matchingObservation.RelevantEvidenceitem from the underlying collection.booleanRemove the first matchingSubjectReferenceitem from the underlying collection.booleanremoveType(String item) Remove the first matchingStringitem from the underlying collection.voidsetCollected(ZonedDateTime value) Set the "Collected Field".voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Observation Description".voidsetExpires(ZonedDateTime value) Set the "Expires Field".voidSet the "Link".voidsetMethods(List<String> value) Set the "Observation Method".voidsetOrigins(List<Origin> value) Set the "Origin".voidSet the "Property".voidSet the "Relevant Evidence".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".voidsetSubjects(List<SubjectReference> value) Set the "Identifies the Subject".voidsetTitle(dev.metaschema.core.datatype.markup.MarkupLine value) Set the "Observation Title".voidSet the "Observation Type".voidSet the "Observation Universally Unique Identifier".toString()
-
Constructor Details
-
Observation
public Observation()Constructs a newdev.metaschema.oscal.lib.model.Observationinstance with no metadata. -
Observation
Constructs a newdev.metaschema.oscal.lib.model.Observationinstance 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 "Observation Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this observation elsewhere in this or other OSCAL instances. The locally defined UUID of the
observationcan 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 "Observation Universally Unique Identifier".A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this observation elsewhere in this or other OSCAL instances. The locally defined UUID of the
observationcan 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 "Observation Title".The title for this observation.
- Returns:
- the title value, or
nullif not set
-
setTitle
Set the "Observation Title".The title for this observation.
- Parameters:
value- the title value to set, ornullto clear
-
getDescription
Get the "Observation Description".A human-readable description of this assessment observation.
- Returns:
- the description value
-
setDescription
Set the "Observation Description".A human-readable description of this assessment observation.
- 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
-
getMethods
Get the "Observation Method".Identifies how the observation was made.
- Returns:
- the method value
-
setMethods
Set the "Observation Method".Identifies how the observation was made.
- Parameters:
value- the method value to set
-
addMethod
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMethod
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getTypes
Get the "Observation Type".Identifies the nature of the observation. More than one may be used to further qualify and enable filtering.
- Returns:
- the type value
-
setTypes
Set the "Observation Type".Identifies the nature of the observation. More than one may be used to further qualify and enable filtering.
- Parameters:
value- the type value to set
-
addType
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeType
Remove the first matchingStringitem 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
-
getSubjects
Get the "Identifies the Subject".A human-oriented identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.
- Returns:
- the subject value
-
setSubjects
Set the "Identifies the Subject".A human-oriented identifier reference to a resource. Use type to indicate whether the identified resource is a component, inventory item, location, user, or something else.
- Parameters:
value- the subject value to set
-
addSubject
Add a newSubjectReferenceitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSubject
Remove the first matchingSubjectReferenceitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelevantEvidence
Get the "Relevant Evidence".Links this observation to relevant evidence.
- Returns:
- the relevant-evidence value
-
setRelevantEvidence
Set the "Relevant Evidence".Links this observation to relevant evidence.
- Parameters:
value- the relevant-evidence value to set
-
addRelevantEvidence
Add a newObservation.RelevantEvidenceitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelevantEvidence
Remove the first matchingObservation.RelevantEvidenceitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getCollected
Get the "Collected Field".Date/time stamp identifying when the finding information was collected.
- Returns:
- the collected value
-
setCollected
Set the "Collected Field".Date/time stamp identifying when the finding information was collected.
- Parameters:
value- the collected value to set
-
getExpires
Get the "Expires Field".Date/time identifying when the finding information is out-of-date and no longer valid. Typically used with continuous assessment scenarios.
- Returns:
- the expires value, or
nullif not set
-
setExpires
Set the "Expires Field".Date/time identifying when the finding information is out-of-date and no longer valid. Typically used with continuous assessment scenarios.
- Parameters:
value- the expires value to set, ornullto clear
-
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
-