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
Nested ClassesModifier and TypeClassDescriptionstatic classLinks this observation to relevant evidence. -
Constructor Summary
Constructors -
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.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()getTypes()getUuid()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) voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetExpires(ZonedDateTime value) voidvoidsetMethods(List<String> value) voidsetOrigins(List<Origin> value) voidvoidvoidsetRemarks(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidsetSubjects(List<SubjectReference> value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidvoidtoString()
-
Constructor Details
-
Observation
public Observation() -
Observation
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getProps
-
setProps
-
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
-
setLinks
-
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
-
setMethods
-
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
-
setTypes
-
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
-
setOrigins
-
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
-
setSubjects
-
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
-
setRelevantEvidence
-
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
-
setCollected
-
getExpires
-
setExpires
-
getRemarks
-
setRemarks
-
toString
-