Class TypeReferenceImpl
java.lang.Object
com.commercetools.api.models.type.TypeReferenceImpl
- All Implemented Interfaces:
Reference
,ReferenceMixin
,Identifiable<Type>
,IdentifiableObjHolder<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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Unique identifier of the referenced Type.getObj()
Contains the representation of the expanded Type.Type of referenced resource.int
hashCode()
void
Unique identifier of the referenced Type.void
Contains the representation of the expanded Type.toString()
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
Type of referenced resource.
- Specified by:
getTypeId
in interfaceReference
- Specified by:
getTypeId
in interfaceReferenceMixin
- Returns:
- typeId
-
getId
Unique identifier of the referenced Type.
- Specified by:
getId
in interfaceIdentifiable<Type>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Specified by:
getId
in interfaceTypeReference
- Returns:
- id
-
getObj
Contains the representation of the expanded Type. Only present in responses to requests with Reference Expansion for Types.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<Type>
- Specified by:
getObj
in interfaceTypeReference
- Returns:
- obj
-
setId
Description copied from interface:TypeReference
Unique identifier of the referenced Type.
- Specified by:
setId
in interfaceReference
- Specified by:
setId
in interfaceTypeReference
- Parameters:
id
- value to be set
-
setObj
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 interfaceTypeReference
- Parameters:
obj
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-