Class Note
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.Note
-
- All Implemented Interfaces:
Serializable
public class Note extends Referenceable
Note defines the properties of a single note in a note log.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DatelastUpdateprotected Stringtextprotected Stringuser-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
additionalProperties, confidenceGovernanceClassification, confidentialityGovernanceClassification, criticalityGovernanceClassification, latestChange, latestChangeDetails, meanings, qualifiedName, retentionGovernanceClassification, searchKeywords, securityTags
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
classifications, extendedProperties, guid, type, url
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.DategetLastUpdate()Return the last time a change was made to this note.StringgetText()Return the text of the note.StringgetUser()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.voidsetText(String text)Set up the text of the note.voidsetUser(String user)Set up the user id of the person who created the note.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.Referenceable
getAdditionalProperties, getConfidenceGovernanceClassification, getConfidentialityGovernanceClassification, getCriticalityGovernanceClassification, getLatestChange, getLatestChangeDetails, getMeanings, getQualifiedName, getRetentionGovernanceClassification, getSearchKeywords, getSecurityTags, setAdditionalProperties, setConfidenceGovernanceClassification, setConfidentialityGovernanceClassification, setCriticalityGovernanceClassification, setLatestChange, setLatestChangeDetails, setMeanings, setQualifiedName, setRetentionGovernanceClassification, setSearchKeywords, setSecurityTags
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader
getClassifications, getExtendedProperties, getGUID, getType, getURL, setClassifications, setExtendedProperties, setGUID, setType, setURL
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
Note
public Note()
Default constructor
-
Note
public Note(Note templateNote)
Copy/clone constructor.- Parameters:
templateNote- note to copy
-
-
Method Detail
-
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:
toStringin classReferenceable- 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:
equalsin classReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classReferenceable- Returns:
- int
-
-