Class TypeReferenceImpl

java.lang.Object
com.commercetools.api.models.type.TypeReferenceImpl
All Implemented Interfaces:
Reference, ReferenceMixin, Identifiable<Type>, TypeReference, io.vrap.rmf.base.client.ModelBase

public class TypeReferenceImpl extends Object implements TypeReference, io.vrap.rmf.base.client.ModelBase

Reference to a Type.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.api.models.type.TypeReference

    TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Unique identifier of the referenced Type.
    Contains the representation of the expanded Type.
    Type of referenced resource.
    int
     
    void
    Unique identifier of the referenced Type.
    void
    setObj(Type obj)
    Contains the representation of the expanded Type.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.api.models.common.Reference

    withReference

    Methods inherited from interface com.commercetools.api.models.type.TypeReference

    toResourceIdentifier, withTypeReference
  • Constructor Details

    • TypeReferenceImpl

      public TypeReferenceImpl()
      create empty instance
  • Method Details

    • getTypeId

      public ReferenceTypeId getTypeId()

      Type of referenced resource.

      Specified by:
      getTypeId in interface Reference
      Specified by:
      getTypeId in interface ReferenceMixin
      Returns:
      typeId
    • getId

      public String getId()

      Unique identifier of the referenced Type.

      Specified by:
      getId in interface Identifiable<Type>
      Specified by:
      getId in interface Reference
      Specified by:
      getId in interface ReferenceMixin
      Specified by:
      getId in interface TypeReference
      Returns:
      id
    • getObj

      public Type getObj()

      Contains the representation of the expanded Type. Only present in responses to requests with Reference Expansion for Types.

      Specified by:
      getObj in interface TypeReference
      Returns:
      obj
    • setId

      public void setId(String id)
      Description copied from interface: TypeReference

      Unique identifier of the referenced Type.

      Specified by:
      setId in interface Reference
      Specified by:
      setId in interface TypeReference
      Parameters:
      id - value to be set
    • setObj

      public void setObj(Type obj)
      Description copied from interface: TypeReference

      Contains the representation of the expanded Type. Only present in responses to requests with Reference Expansion for Types.

      Specified by:
      setObj in interface TypeReference
      Parameters:
      obj - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object