Class Risk.RiskLog

java.lang.Object
dev.metaschema.oscal.lib.model.Risk.RiskLog
All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
Enclosing class:
Risk

@MetaschemaAssembly(formalName="Risk Log", description="A log of all risk-related tasks taken.", name="risk-log", moduleClass=OscalAssessmentCommonModule.class) public static class Risk.RiskLog extends Object implements dev.metaschema.core.model.IBoundObject
A log of all risk-related tasks taken.
  • Constructor Details

    • RiskLog

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

      public RiskLog(dev.metaschema.core.model.IMetaschemaData data)
      Constructs a new dev.metaschema.oscal.lib.model.Risk.RiskLog 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
    • getEntries

      @NonNull public List<Risk.RiskLog.Entry> getEntries()
      Get the "Risk Log Entry".

      Identifies an individual risk response that occurred as part of managing an identified risk.

      Returns:
      the entry value
    • setEntries

      public void setEntries(@NonNull List<Risk.RiskLog.Entry> value)
      Set the "Risk Log Entry".

      Identifies an individual risk response that occurred as part of managing an identified risk.

      Parameters:
      value - the entry value to set
    • addEntry

      public boolean addEntry(Risk.RiskLog.Entry item)
      Add a new Risk.RiskLog.Entry item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeEntry

      public boolean removeEntry(Risk.RiskLog.Entry item)
      Remove the first matching Risk.RiskLog.Entry item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object