Class ReferenceableRequestBody

java.lang.Object
org.odpi.openmetadata.accessservices.assetmanager.rest.ReferenceableRequestBody
Direct Known Subclasses:
ReferenceableUpdateRequestBody

public class ReferenceableRequestBody extends Object
ReferenceableRequestBody describes the request body used to create/update properties in referenceables. The properties of the specific element must inherit from ReferenceableProperties and be included in the subtype list of the ReferenceableProperties class to make it possible for the server to correctly unpack this bean.
  • Constructor Details

    • ReferenceableRequestBody

      public ReferenceableRequestBody()
      Default constructor
    • ReferenceableRequestBody

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

    • getMetadataCorrelationProperties

      public MetadataCorrelationProperties getMetadataCorrelationProperties()
      Return the properties used to correlate the external metadata element with the open metadata element.
      Returns:
      properties object
    • setMetadataCorrelationProperties

      public void setMetadataCorrelationProperties(MetadataCorrelationProperties metadataCorrelationProperties)
      Set up the properties used to correlate the external metadata element with the open metadata element.
      Parameters:
      metadataCorrelationProperties - properties object
    • getElementProperties

      public ReferenceableProperties getElementProperties()
      Return the properties for the element.
      Returns:
      properties object
    • setElementProperties

      public void setElementProperties(ReferenceableProperties elementProperties)
      Set up the properties for the element.
      Parameters:
      elementProperties - properties object
    • getParentGUID

      public String getParentGUID()
      Return an optional parent GUID to attach the new element to.
      Returns:
      guid
    • setParentGUID

      public void setParentGUID(String parentGUID)
      Set up an optional parent GUID to attach the new element to.
      Parameters:
      parentGUID - guid
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Object
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

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