Class AssetNote
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyElementBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
-
- org.odpi.openmetadata.frameworks.connectors.properties.AssetNote
-
- All Implemented Interfaces:
Serializable
public class AssetNote extends AssetReferenceable
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 NotenoteBean-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
referenceableBean
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
parentAsset
-
-
Constructor Summary
Constructors Constructor Description AssetNote(AssetDescriptor parentAsset, AssetNote templateNote)Copy/clone constructor.AssetNote(AssetDescriptor parentAsset, Note noteBean)Bean constructor with parent assetAssetNote(Note noteBean)Bean constructor
-
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.protected NotegetNoteBean()Return the bean with all of the properties.StringgetText()Return the text of the note.StringgetUser()Return the user id of the person who created the note.inthashCode()Hash of propertiesStringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetReferenceable
getAdditionalProperties, getMeanings, getQualifiedName, getReferenceableBean, getSecurityTags, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetElementHeader
getAssetClassifications, getElementHeaderBean, getExtendedProperties, getGUID, getType, getURL, setBean
-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.AssetPropertyBase
getParentAsset, getParentAssetName, getParentAssetTypeName
-
-
-
-
Field Detail
-
noteBean
protected Note noteBean
-
-
Constructor Detail
-
AssetNote
public AssetNote(Note noteBean)
Bean constructor- Parameters:
noteBean- bean containing the properties
-
AssetNote
public AssetNote(AssetDescriptor parentAsset, Note noteBean)
Bean constructor with parent asset- Parameters:
parentAsset- descriptor for parent assetnoteBean- bean containing the properties
-
AssetNote
public AssetNote(AssetDescriptor parentAsset, AssetNote templateNote)
Copy/clone constructor.- Parameters:
parentAsset- descriptor for parent assettemplateNote- note to copy
-
-
Method Detail
-
getNoteBean
protected Note getNoteBean()
Return the bean with all of the properties.- Returns:
- note bean
-
getText
public String getText()
Return the text of the note.- Returns:
- String text
-
getLastUpdate
public Date getLastUpdate()
Return the last time a change was made to this note.- Returns:
- Date last update
-
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 liking user
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetReferenceable- 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 classAssetReferenceable- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash of properties- Overrides:
hashCodein classAssetReferenceable- Returns:
- int
-
-