Class ProductTypeReferenceImpl
java.lang.Object
com.commercetools.api.models.product_type.ProductTypeReferenceImpl
- All Implemented Interfaces:
Reference
,ReferenceMixin
,Identifiable<ProductType>
,ProductTypeReference
,io.vrap.rmf.base.client.ModelBase
public class ProductTypeReferenceImpl
extends Object
implements ProductTypeReference, io.vrap.rmf.base.client.ModelBase
Reference to a ProductType.
-
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.product_type.ProductTypeReference
PRODUCT_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Unique identifier of the referenced ProductType.getObj()
Contains the representation of the expanded ProductType.Type of referenced resource.int
hashCode()
void
Unique identifier of the referenced ProductType.void
setObj
(ProductType obj) Contains the representation of the expanded ProductType.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.product_type.ProductTypeReference
withProductTypeReference
Methods inherited from interface com.commercetools.api.models.common.Reference
withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Constructor Details
-
ProductTypeReferenceImpl
public ProductTypeReferenceImpl()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 ProductType.
- Specified by:
getId
in interfaceIdentifiable<ProductType>
- Specified by:
getId
in interfaceProductTypeReference
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
getObj
Contains the representation of the expanded ProductType. Only present in responses to requests with Reference Expansion for ProductTypes.
- Specified by:
getObj
in interfaceProductTypeReference
- Returns:
- obj
-
setId
Description copied from interface:ProductTypeReference
Unique identifier of the referenced ProductType.
- Specified by:
setId
in interfaceProductTypeReference
- Specified by:
setId
in interfaceReference
- Parameters:
id
- value to be set
-
setObj
Description copied from interface:ProductTypeReference
Contains the representation of the expanded ProductType. Only present in responses to requests with Reference Expansion for ProductTypes.
- Specified by:
setObj
in interfaceProductTypeReference
- Parameters:
obj
- value to be set
-
equals
-
hashCode
-