Package gov.nist.secauto.oscal.lib.model
Class Observation
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Observation
-
@MetaschemaAssembly(formalName="Observation", description="Describes an individual observation.", name="observation", metaschema=OscalAssessmentCommonMetaschema.class) public class Observation extends Object
Describes an individual observation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Observation.RelevantEvidence
Links this observation to relevant evidence.
-
Constructor Summary
Constructors Constructor Description Observation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addMethod(String item)
Add a newString
item to the underlying collection.boolean
addOrigin(Origin item)
Add a newOrigin
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.boolean
addRelevantEvidence(Observation.RelevantEvidence item)
Add a newObservation.RelevantEvidence
item to the underlying collection.boolean
addSubject(SubjectReference item)
Add a newSubjectReference
item to the underlying collection.boolean
addType(String item)
Add a newString
item to the underlying collection.ZonedDateTime
getCollected()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
ZonedDateTime
getExpires()
List<Link>
getLinks()
List<String>
getMethods()
List<Origin>
getOrigins()
List<Property>
getProps()
List<Observation.RelevantEvidence>
getRelevantEvidence()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
List<SubjectReference>
getSubjects()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine
getTitle()
List<String>
getTypes()
UUID
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
removeRelevantEvidence(Observation.RelevantEvidence item)
Remove the first matchingObservation.RelevantEvidence
item from the underlying collection.boolean
removeSubject(SubjectReference item)
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.model.common.datatype.markup.MarkupMultiline value)
void
setExpires(ZonedDateTime value)
void
setLinks(List<Link> value)
void
setMethods(List<String> value)
void
setOrigins(List<Origin> value)
void
setProps(List<Property> value)
void
setRelevantEvidence(List<Observation.RelevantEvidence> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setSubjects(List<SubjectReference> value)
void
setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
void
setTypes(List<String> value)
void
setUuid(UUID value)
String
toString()
-
-
-
Constructor Detail
-
Observation
public Observation()
-
-
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)
-
addProp
public boolean addProp(Property item)
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
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
public List<String> getMethods()
-
setMethods
public void setMethods(List<String> value)
-
addMethod
public boolean addMethod(String item)
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeMethod
public boolean removeMethod(String item)
Remove the first matchingString
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addType
public boolean addType(String item)
Add a newString
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeType
public boolean removeType(String item)
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
public List<Origin> getOrigins()
-
setOrigins
public void setOrigins(List<Origin> value)
-
addOrigin
public boolean addOrigin(Origin item)
Add a newOrigin
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(Origin item)
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
public List<SubjectReference> getSubjects()
-
setSubjects
public void setSubjects(List<SubjectReference> value)
-
addSubject
public boolean addSubject(SubjectReference item)
Add a newSubjectReference
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeSubject
public boolean removeSubject(SubjectReference item)
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
public List<Observation.RelevantEvidence> getRelevantEvidence()
-
setRelevantEvidence
public void setRelevantEvidence(List<Observation.RelevantEvidence> value)
-
addRelevantEvidence
public boolean addRelevantEvidence(Observation.RelevantEvidence item)
Add a newObservation.RelevantEvidence
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRelevantEvidence
public boolean removeRelevantEvidence(Observation.RelevantEvidence item)
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
public ZonedDateTime getCollected()
-
setCollected
public void setCollected(ZonedDateTime value)
-
getExpires
public ZonedDateTime getExpires()
-
setExpires
public void setExpires(ZonedDateTime value)
-
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)
-
-