Class CommentElement
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetconsumer.elements.CommentElement
-
- All Implemented Interfaces:
Serializable,MetadataElement
public class CommentElement extends Object implements MetadataElement, Serializable
CommentElement contains the properties and header for a comment entity retrieved from the metadata repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommentElement()Default constructorCommentElement(CommentElement template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Return comparison result based on the content of the properties.CommentPropertiesgetCommentProperties()Return the properties for the comment.ElementHeadergetElementHeader()Return the element header associated with the properties.inthashCode()Return hash code for this objectvoidsetCommentProperties(CommentProperties commentProperties)Set up the properties for the comment.voidsetElementHeader(ElementHeader elementHeader)Set up the element header associated with the properties.StringtoString()JSON-style toString
-
-
-
Constructor Detail
-
CommentElement
public CommentElement()
Default constructor
-
CommentElement
public CommentElement(CommentElement template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getElementHeader
public ElementHeader getElementHeader()
Return the element header associated with the properties.- Specified by:
getElementHeaderin interfaceMetadataElement- Returns:
- element header object
-
setElementHeader
public void setElementHeader(ElementHeader elementHeader)
Set up the element header associated with the properties.- Specified by:
setElementHeaderin interfaceMetadataElement- Parameters:
elementHeader- element header object
-
getCommentProperties
public CommentProperties getCommentProperties()
Return the properties for the comment.- Returns:
- properties bean
-
setCommentProperties
public void setCommentProperties(CommentProperties commentProperties)
Set up the properties for the comment.- Parameters:
commentProperties- properties bean
-
toString
public String toString()
JSON-style toString
-
equals
public boolean equals(Object objectToCompare)
Return comparison result based on the content of the properties.
-
-