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 ObjectDescribes an individual observation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObservation.RelevantEvidenceLinks this observation to relevant evidence.
-
Constructor Summary
Constructors Constructor Description Observation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddLink(Link item)Add a newLinkitem to the underlying collection.booleanaddMethod(String item)Add a newStringitem to the underlying collection.booleanaddOrigin(Origin item)Add a newOriginitem to the underlying collection.booleanaddProp(Property item)Add a newPropertyitem to the underlying collection.booleanaddRelevantEvidence(Observation.RelevantEvidence item)Add a newObservation.RelevantEvidenceitem to the underlying collection.booleanaddSubject(SubjectReference item)Add a newSubjectReferenceitem to the underlying collection.booleanaddType(String item)Add a newStringitem to the underlying collection.ZonedDateTimegetCollected()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetDescription()ZonedDateTimegetExpires()List<Link>getLinks()List<String>getMethods()List<Origin>getOrigins()List<Property>getProps()List<Observation.RelevantEvidence>getRelevantEvidence()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultilinegetRemarks()List<SubjectReference>getSubjects()gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLinegetTitle()List<String>getTypes()UUIDgetUuid()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.booleanremoveRelevantEvidence(Observation.RelevantEvidence item)Remove the first matchingObservation.RelevantEvidenceitem from the underlying collection.booleanremoveSubject(SubjectReference item)Remove the first matchingSubjectReferenceitem from the underlying collection.booleanremoveType(String item)Remove the first matchingStringitem from the underlying collection.voidsetCollected(ZonedDateTime value)voidsetDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetExpires(ZonedDateTime value)voidsetLinks(List<Link> value)voidsetMethods(List<String> value)voidsetOrigins(List<Origin> value)voidsetProps(List<Property> value)voidsetRelevantEvidence(List<Observation.RelevantEvidence> value)voidsetRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)voidsetSubjects(List<SubjectReference> value)voidsetTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)voidsetTypes(List<String> value)voidsetUuid(UUID value)StringtoString()
-
-
-
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 newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addLink
public boolean addLink(Link item)
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMethods
public List<String> getMethods()
-
setMethods
public void setMethods(List<String> value)
-
addMethod
public boolean addMethod(String item)
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMethod
public boolean removeMethod(String item)
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
addType
public boolean addType(String item)
Add a newStringitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeType
public boolean removeType(String item)
Remove the first matchingStringitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getOrigins
public List<Origin> getOrigins()
-
setOrigins
public void setOrigins(List<Origin> value)
-
addOrigin
public boolean addOrigin(Origin item)
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(Origin item)
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getSubjects
public List<SubjectReference> getSubjects()
-
setSubjects
public void setSubjects(List<SubjectReference> value)
-
addSubject
public boolean addSubject(SubjectReference item)
Add a newSubjectReferenceitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeSubject
public boolean removeSubject(SubjectReference item)
Remove the first matchingSubjectReferenceitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRelevantEvidence
public List<Observation.RelevantEvidence> getRelevantEvidence()
-
setRelevantEvidence
public void setRelevantEvidence(List<Observation.RelevantEvidence> value)
-
addRelevantEvidence
public boolean addRelevantEvidence(Observation.RelevantEvidence item)
Add a newObservation.RelevantEvidenceitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelevantEvidence
public boolean removeRelevantEvidence(Observation.RelevantEvidence item)
Remove the first matchingObservation.RelevantEvidenceitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
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)
-
-