Class AssociatedRisk

java.lang.Object
dev.metaschema.oscal.lib.model.AssociatedRisk
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject

@MetaschemaAssembly(formalName="Associated Risk", description="Relates the finding to a set of referenced risks that were used to determine the finding.", name="associated-risk", moduleClass=OscalAssessmentCommonModule.class) public class AssociatedRisk extends Object implements dev.metaschema.core.model.IBoundObject
Relates the finding to a set of referenced risks that were used to determine the finding.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new dev.metaschema.oscal.lib.model.AssociatedRisk instance with no metadata.
    AssociatedRisk(dev.metaschema.core.model.IMetaschemaData data)
    Constructs a new dev.metaschema.oscal.lib.model.AssociatedRisk instance with the specified metadata.
  • Method Summary

    Modifier and Type
    Method
    Description
    dev.metaschema.core.model.IMetaschemaData
     
    dev.metaschema.core.datatype.markup.MarkupMultiline
    Get the "Remarks".
    Get the "Risk Universally Unique Identifier Reference".
    void
    setRemarks(dev.metaschema.core.datatype.markup.MarkupMultiline value)
    Set the "Remarks".
    void
    Set the "Risk Universally Unique Identifier Reference".
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AssociatedRisk

      public AssociatedRisk()
      Constructs a new dev.metaschema.oscal.lib.model.AssociatedRisk instance with no metadata.
    • AssociatedRisk

      public AssociatedRisk(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.AssociatedRisk instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public dev.metaschema.core.model.IMetaschemaData getMetaschemaData()
      Specified by:
      getMetaschemaData in interface dev.metaschema.core.model.IBoundObject
    • getRiskUuid

      @NonNull public UUID getRiskUuid()
      Get the "Risk Universally Unique Identifier Reference".

      A machine-oriented identifier reference to a risk defined in the list of risks.

      Returns:
      the risk-uuid value
    • setRiskUuid

      public void setRiskUuid(@NonNull UUID value)
      Set the "Risk Universally Unique Identifier Reference".

      A machine-oriented identifier reference to a risk defined in the list of risks.

      Parameters:
      value - the risk-uuid value to set
    • getRemarks

      @Nullable public dev.metaschema.core.datatype.markup.MarkupMultiline getRemarks()
      Get the "Remarks".

      Additional commentary about the containing object.

      Returns:
      the remarks value, or null if not set
    • setRemarks

      public void setRemarks(@Nullable dev.metaschema.core.datatype.markup.MarkupMultiline value)
      Set the "Remarks".

      Additional commentary about the containing object.

      Parameters:
      value - the remarks value to set, or null to clear
    • toString

      public String toString()
      Overrides:
      toString in class Object