Package dev.metaschema.oscal.lib.model
Class Observation.RelevantEvidence
java.lang.Object
dev.metaschema.oscal.lib.model.Observation.RelevantEvidence
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
- Enclosing class:
- Observation
@MetaschemaAssembly(formalName="Relevant Evidence",
description="Links this observation to relevant evidence.",
name="relevant-evidence",
moduleClass=OscalAssessmentCommonModule.class)
public static class Observation.RelevantEvidence
extends Object
implements dev.metaschema.core.model.IBoundObject
Links this observation to relevant evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.oscal.lib.model.Observation.RelevantEvidenceinstance with no metadata.RelevantEvidence(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.oscal.lib.model.Observation.RelevantEvidenceinstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newLinkitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Relevant Evidence Description".getHref()Get the "Relevant Evidence Reference".getLinks()Get the "Link".dev.metaschema.core.model.IMetaschemaDatagetProps()Get the "Property".dev.metaschema.core.datatype.markup.MarkupMultilineGet the "Remarks".booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.voidsetDescription(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Relevant Evidence Description".voidSet the "Relevant Evidence Reference".voidSet the "Link".voidSet the "Property".voidsetRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value) Set the "Remarks".toString()
-
Constructor Details
-
RelevantEvidence
public RelevantEvidence()Constructs a newdev.metaschema.oscal.lib.model.Observation.RelevantEvidenceinstance with no metadata. -
RelevantEvidence
Constructs a newdev.metaschema.oscal.lib.model.Observation.RelevantEvidenceinstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getHref
Get the "Relevant Evidence Reference".A resolvable URL reference to relevant evidence.
- Returns:
- the href value, or
nullif not set
-
setHref
Set the "Relevant Evidence Reference".A resolvable URL reference to relevant evidence.
- Parameters:
value- the href value to set, ornullto clear
-
getDescription
Get the "Relevant Evidence Description".A human-readable description of this evidence.
- Returns:
- the description value
-
setDescription
Set the "Relevant Evidence Description".A human-readable description of this evidence.
- 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
-
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
-