java.lang.Object
org.odpi.openmetadata.accessservices.stewardshipaction.properties.DuplicateProperties

public class DuplicateProperties extends Object
DuplicatesProperties provides a structure for passing the properties associated with duplicates.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
    Copy/clone constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object objectToCompare)
    Equals method that returns true if containing properties are the same.
    org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub
    Return the unique identifier of the duplicate.
    Return any notes for the steward.
    Return the details of the source that detected the duplicate.
    int
    Return the status of this duplicate - usable if greater than 0, 0=proposed, negative means invalid
    Return the identifier of the steward that added this duplicate.
    Return the name of the property used to identify the steward.
    Return the type name of the element used to identify the steward.
    int
    Return hash code for this object
    void
    setDuplicateElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub duplicateElement)
    Set up the header of the duplicate.
    void
    Set up any notes for the steward.
    void
    setSource(String source)
    Set up the details of the source that detected the duplicate.
    void
    setStatusIdentifier(int statusIdentifier)
    Set up the status of this duplicate - usable if greater than 0, 0=proposed, negative means invalid
    void
    setSteward(String steward)
    Set up the identifier of the steward that added this duplicate.
    void
    setStewardPropertyName(String stewardPropertyName)
    Return the name of the property used to identify the steward.
    void
    setStewardTypeName(String stewardTypeName)
    Set up the type name of the element used to identify the steward.
    JSON-style toString.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DuplicateProperties

      public DuplicateProperties()
      Default constructor
    • DuplicateProperties

      public DuplicateProperties(DuplicateProperties template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getDuplicateElement

      public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getDuplicateElement()
      Return the unique identifier of the duplicate.
      Returns:
      header
    • setDuplicateElement

      public void setDuplicateElement(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub duplicateElement)
      Set up the header of the duplicate.
      Parameters:
      duplicateElement - header
    • getStatusIdentifier

      public int getStatusIdentifier()
      Return the status of this duplicate - usable if greater than 0, 0=proposed, negative means invalid
      Returns:
      int
    • setStatusIdentifier

      public void setStatusIdentifier(int statusIdentifier)
      Set up the status of this duplicate - usable if greater than 0, 0=proposed, negative means invalid
      Parameters:
      statusIdentifier - int
    • getSteward

      public String getSteward()
      Return the identifier of the steward that added this duplicate.
      Returns:
      identifier
    • setSteward

      public void setSteward(String steward)
      Set up the identifier of the steward that added this duplicate.
      Parameters:
      steward - identifier
    • getStewardTypeName

      public String getStewardTypeName()
      Return the type name of the element used to identify the steward.
      Returns:
      type name
    • setStewardTypeName

      public void setStewardTypeName(String stewardTypeName)
      Set up the type name of the element used to identify the steward.
      Parameters:
      stewardTypeName - type name
    • getStewardPropertyName

      public String getStewardPropertyName()
      Return the name of the property used to identify the steward.
      Returns:
      property name
    • setStewardPropertyName

      public void setStewardPropertyName(String stewardPropertyName)
      Return the name of the property used to identify the steward.
      Parameters:
      stewardPropertyName - property name
    • getSource

      public String getSource()
      Return the details of the source that detected the duplicate.
      Returns:
      name
    • setSource

      public void setSource(String source)
      Set up the details of the source that detected the duplicate.
      Parameters:
      source - name
    • getNotes

      public String getNotes()
      Return any notes for the steward.
      Returns:
      text
    • setNotes

      public void setNotes(String notes)
      Set up any notes for the steward.
      Parameters:
      notes - text
    • toString

      public String toString()
      JSON-style toString.
      Overrides:
      toString in class Object
      Returns:
      list of properties and their values.
    • equals

      public boolean equals(Object objectToCompare)
      Equals method that returns true if containing properties are the same.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - object to compare
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code