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

public class Note extends Referenceable
Note defines the properties of a single note in a note log.
  • Field Summary

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

    CURRENT_AUDIT_HEADER_VERSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Note(Note templateNote)
    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 the last time a change was made to this note.
    Return the text of the note.
    Return the user id of the person who created the note.
    int
    Hash of properties
    void
    setLastUpdate(Date lastUpdate)
    Set up the last time a change was made to this note.
    void
    Set up the text of the note.
    void
    Set up the user id of the person who created the note.
    Standard toString method.

    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

    • Note

      public Note()
      Default constructor
    • Note

      public Note(Note templateNote)
      Copy/clone constructor.
      Parameters:
      templateNote - note to copy
  • Method Details

    • getText

      public String getText()
      Return the text of the note.
      Returns:
      String text
    • setText

      public void setText(String text)
      Set up the text of the note.
      Parameters:
      text - String text
    • getLastUpdate

      public Date getLastUpdate()
      Return the last time a change was made to this note.
      Returns:
      Date last updated
    • setLastUpdate

      public void setLastUpdate(Date lastUpdate)
      Set up the last time a change was made to this note.
      Parameters:
      lastUpdate - Date last updated
    • getUser

      public String getUser()
      Return the user id of the person who created the note. Null means the user id is not known.
      Returns:
      String user making notes
    • setUser

      public void setUser(String user)
      Set up the user id of the person who created the note. Null means the user id is not known.
      Parameters:
      user - String user making notes
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Referenceable
      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 Referenceable
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

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