Class Note
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
org.odpi.openmetadata.frameworks.connectors.properties.beans.Note
Note defines the properties of a single note in a note log.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, qualifiedName
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
extendedProperties
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.getText()
Return the text of the note.getUser()
Return the user id of the person who created the note.int
hashCode()
Hash of propertiesvoid
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.toString()
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
-
Field Details
-
text
-
lastUpdate
-
user
-
-
Constructor Details
-
Note
public Note()Default constructor -
Note
Copy/clone constructor.- Parameters:
templateNote
- note to copy
-
-
Method Details
-
getText
Return the text of the note.- Returns:
- String text
-
setText
Set up the text of the note.- Parameters:
text
- String text
-
getLastUpdate
Return the last time a change was made to this note.- Returns:
- Date last updated
-
setLastUpdate
Set up the last time a change was made to this note.- Parameters:
lastUpdate
- Date last updated
-
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
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
Standard toString method.- Overrides:
toString
in classReferenceable
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceable
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCode
in classReferenceable
- Returns:
- int
-