Class ReferenceableRequestBody


public class ReferenceableRequestBody extends ExternalSourceRequestBody
ReferenceableRequestBody describes the request body used when working with referenceables.
  • Constructor Details

    • ReferenceableRequestBody

      public ReferenceableRequestBody()
      Default constructor
    • ReferenceableRequestBody

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

    • getProperties

      public ReferenceableProperties getProperties()
      Return the properties for the relationship.
      Returns:
      properties object
    • setProperties

      public void setProperties(ReferenceableProperties properties)
      Set up the properties for the relationship.
      Parameters:
      properties - properties object
    • getParentGUID

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

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

      public String toString()
      JSON-style toString
      Overrides:
      toString in class ExternalSourceRequestBody
      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 ExternalSourceRequestBody
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

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