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.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare 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.inthashCode()Hash of propertiesvoidsetLastUpdate(Date lastUpdate) Set up the last time a change was made to this note.voidSet up the text of the note.voidSet 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, setQualifiedNameMethods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementBase
getExtendedProperties, setExtendedPropertiesMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementHeader
getClassifications, getGUID, setClassifications, setGUIDMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
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:
toStringin 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:
equalsin classReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Hash of properties- Overrides:
hashCodein classReferenceable- Returns:
- int
-