Class DuplicateElement
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.stewardshipaction.metadataelements.DuplicateElement
-
- All Implemented Interfaces:
Serializable,MetadataElement
public class DuplicateElement extends Object implements MetadataElement, Serializable
DuplicateElement contains the properties and header for an asset retrieved from the metadata repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateElement()Default constructorDuplicateElement(DuplicateElement 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.DuplicatePropertiesgetDuplicateProperties()Retrieve details of the duplicate itself.ElementHeadergetElementHeader()Return the relationship header associated with the properties.inthashCode()Return hash code for this objectvoidsetAssetProperties(DuplicateProperties duplicateProperties)Save details of the duplicate itselfvoidsetElementHeader(ElementHeader elementHeader)Set up the relationship header associated with the properties.StringtoString()JSON-style toString
-
-
-
Constructor Detail
-
DuplicateElement
public DuplicateElement()
Default constructor
-
DuplicateElement
public DuplicateElement(DuplicateElement template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getElementHeader
public ElementHeader getElementHeader()
Return the relationship header associated with the properties.- Specified by:
getElementHeaderin interfaceMetadataElement- Returns:
- element header object
-
setElementHeader
public void setElementHeader(ElementHeader elementHeader)
Set up the relationship header associated with the properties.- Specified by:
setElementHeaderin interfaceMetadataElement- Parameters:
elementHeader- element header object
-
getDuplicateProperties
public DuplicateProperties getDuplicateProperties()
Retrieve details of the duplicate itself.- Returns:
- properties bean
-
setAssetProperties
public void setAssetProperties(DuplicateProperties duplicateProperties)
Save details of the duplicate itself- Parameters:
duplicateProperties- 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.
-
-