Class TypeDefChangeRequest

java.lang.Object
org.odpi.openmetadata.repositoryservices.rest.properties.OMRSAPIRequest
org.odpi.openmetadata.repositoryservices.rest.properties.TypeDefChangeRequest
All Implemented Interfaces:
Serializable

public class TypeDefChangeRequest extends OMRSAPIRequest
TypeDefChangeRequest carries details of the old and new TypeDef used to re-type an instance.
See Also:
  • Constructor Details

    • TypeDefChangeRequest

      public TypeDefChangeRequest()
      Default constructor
    • TypeDefChangeRequest

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

    • getCurrentTypeDef

      public TypeDefSummary getCurrentTypeDef()
      Return the current type.
      Returns:
      TypeDef summary
    • setCurrentTypeDef

      public void setCurrentTypeDef(TypeDefSummary currentTypeDef)
      Set up the current type
      Parameters:
      currentTypeDef - TypeDef summary
    • getNewTypeDef

      public TypeDefSummary getNewTypeDef()
      Return the new type.
      Returns:
      TypeDef summary
    • setNewTypeDef

      public void setNewTypeDef(TypeDefSummary newTypeDef)
      Set up the new type.
      Parameters:
      newTypeDef - TypeDef summary
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      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:
      equals in class Object
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Create a hash code for this element type.
      Overrides:
      hashCode in class Object
      Returns:
      int hash code