Class Risk.RiskLog.Entry.RelatedResponse

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

@MetaschemaAssembly(formalName="Risk Response Reference", description="Identifies an individual risk response that this log entry is for.", name="related-response", moduleClass=OscalAssessmentCommonModule.class) public static class Risk.RiskLog.Entry.RelatedResponse extends Object implements dev.metaschema.core.model.IBoundObject
Identifies an individual risk response that this log entry is for.
  • Constructor Details

    • RelatedResponse

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

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

      @NonNull public UUID getResponseUuid()
      Get the "Response Universally Unique Identifier Reference".

      A machine-oriented identifier reference to a unique risk response.

      Returns:
      the response-uuid value
    • setResponseUuid

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

      A machine-oriented identifier reference to a unique risk response.

      Parameters:
      value - the response-uuid value to set
    • getProps

      @NonNull public List<Property> 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

      public void setProps(@NonNull List<Property> value)
      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

      public boolean addProp(Property item)
      Add a new Property item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeProp

      public boolean removeProp(Property item)
      Remove the first matching Property item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getLinks

      @NonNull public List<Link> 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

      public void setLinks(@NonNull List<Link> value)
      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

      public boolean addLink(Link item)
      Add a new Link item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeLink

      public boolean removeLink(Link item)
      Remove the first matching Link item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • getRelatedTasks

      @NonNull public List<RelatedTask> getRelatedTasks()
      Get the "Task Reference".

      Identifies an individual task for which the containing object is a consequence of.

      Returns:
      the related-task value
    • setRelatedTasks

      public void setRelatedTasks(@NonNull List<RelatedTask> value)
      Set the "Task Reference".

      Identifies an individual task for which the containing object is a consequence of.

      Parameters:
      value - the related-task value to set
    • addRelatedTask

      public boolean addRelatedTask(RelatedTask item)
      Add a new RelatedTask item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeRelatedTask

      public boolean removeRelatedTask(RelatedTask item)
      Remove the first matching RelatedTask item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • 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