Package gov.nist.secauto.oscal.lib.model
Class Observation
java.lang.Object
gov.nist.secauto.oscal.lib.model.Observation
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Observation",
description="Describes an individual observation.",
name="observation",
moduleClass=OscalAssessmentCommonModule.class)
public class Observation
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
Describes an individual observation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Links this observation to relevant evidence. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newLink
item to the underlying collection.boolean
Add a newString
item to the underlying collection.boolean
Add a newOrigin
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.boolean
Add a newObservation.RelevantEvidence
item to the underlying collection.boolean
addSubject
(SubjectReference item) Add a newSubjectReference
item to the underlying collection.boolean
Add a newString
item to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
getTypes()
getUuid()
boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
removeMethod
(String item) Remove the first matchingString
item from the underlying collection.boolean
removeOrigin
(Origin item) Remove the first matchingOrigin
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.boolean
Remove the first matchingObservation.RelevantEvidence
item from the underlying collection.boolean
Remove the first matchingSubjectReference
item from the underlying collection.boolean
removeType
(String item) Remove the first matchingString
item from the underlying collection.void
setCollected
(ZonedDateTime value) void
setDescription
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setExpires
(ZonedDateTime value) void
void
setMethods
(List<String> value) void
setOrigins
(List<Origin> value) void
void
void
setRemarks
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
setSubjects
(List<SubjectReference> value) void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
void
toString()
-
Constructor Details
-
Observation
public Observation() -
Observation
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getMethods
-
setMethods
-
addMethod
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeMethod
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getTypes
-
setTypes
-
addType
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeType
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getOrigins
-
setOrigins
-
addOrigin
Add a newOrigin
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingOrigin
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getSubjects
-
setSubjects
-
addSubject
Add a newSubjectReference
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeSubject
Remove the first matchingSubjectReference
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRelevantEvidence
-
setRelevantEvidence
-
addRelevantEvidence
Add a newObservation.RelevantEvidence
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRelevantEvidence
Remove the first matchingObservation.RelevantEvidence
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getCollected
-
setCollected
-
getExpires
-
setExpires
-
getRemarks
-
setRemarks
-
toString
-