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