java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader

public class NoteLog extends NoteLogHeader
Stores information about a comment connected to an asset. Comments provide informal feedback to assets and can be added at any time. Comments have the userId of the person who added the feedback, along with their comment text. Comments can have other comments attached. The content of the comment is a personal statement (which is why the user's id is in the comment) and there is no formal review of the content.
  • Field Summary

    Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader

    CURRENT_AUDIT_HEADER_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    NoteLog(NoteLogHeader noteLogHeader, Notes notes)
    Bean constructor
    NoteLog(NoteLog template)
    Copy/clone constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Compare the values of the supplied object with those stored in the current object.
    Return an iterator of the replies to this comment - null means no replies are available.
    int
    Hash of properties
    Standard toString method.

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.NoteLogHeader

    getDescription, getDisplayName, setDescription, setDisplayName

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable

    getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedName

    Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase

    getExtendedProperties, setExtendedProperties

    Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader

    getClassifications, getGUID, setClassifications, setGUID

    Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader

    getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NoteLog

      public NoteLog(NoteLogHeader noteLogHeader, Notes notes)
      Bean constructor
      Parameters:
      noteLogHeader - bean that contains all the properties
      notes - iterator
    • NoteLog

      public NoteLog(NoteLog template)
      Copy/clone constructor.
      Parameters:
      template - element to copy
  • Method Details

    • getNotes

      public Notes getNotes()
      Return an iterator of the replies to this comment - null means no replies are available.
      Returns:
      comment replies iterator
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class NoteLogHeader
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class NoteLogHeader
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class NoteLogHeader
      Returns:
      int