Class CategoryDraftImpl
- All Implemented Interfaces:
CategoryDraft
,CustomizableDraft<CategoryDraft>
,WithKey
,io.vrap.rmf.base.client.Draft<CategoryDraft>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Media related to the Category.Custom Fields for the Category.Description of the Category.Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).getKey()
User-defined unique identifier for the Category.Description of the Category used by external search engines for improved search engine performance.Keywords related to the Category for improved search engine performance.Name of the Category used by external search engines for improved search engine performance.getName()
Name of the Category.Decimal value between 0 and 1 used to order Categories that are on the same level in the Category tree.Parent Category of the Category.getSlug()
User-defined identifier used as a deep-link URL to the related Category.int
hashCode()
void
setAssets
(AssetDraft... assets) Media related to the Category.void
setAssets
(List<AssetDraft> assets) Media related to the Category.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the Category.void
setDescription
(LocalizedString description) Description of the Category.void
setExternalId
(String externalId) Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).void
User-defined unique identifier for the Category.void
setMetaDescription
(LocalizedString metaDescription) Description of the Category used by external search engines for improved search engine performance.void
setMetaKeywords
(LocalizedString metaKeywords) Keywords related to the Category for improved search engine performance.void
setMetaTitle
(LocalizedString metaTitle) Name of the Category used by external search engines for improved search engine performance.void
setName
(LocalizedString name) Name of the Category.void
setOrderHint
(String orderHint) Decimal value between 0 and 1 used to order Categories that are on the same level in the Category tree.void
setParent
(CategoryResourceIdentifier parent) Parent Category of the Category.void
setSlug
(LocalizedString slug) User-defined identifier used as a deep-link URL to the related Category.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.category.CategoryDraft
withCategoryDraft
Methods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CategoryDraftImpl
public CategoryDraftImpl()create empty instance
-
-
Method Details
-
getName
Name of the Category.
- Specified by:
getName
in interfaceCategoryDraft
- Returns:
- name
-
getSlug
User-defined identifier used as a deep-link URL to the related Category. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Specified by:
getSlug
in interfaceCategoryDraft
- Returns:
- slug
-
getDescription
Description of the Category.
- Specified by:
getDescription
in interfaceCategoryDraft
- Returns:
- description
-
getParent
Parent Category of the Category. The parent can be set by its
id
orkey
.- Specified by:
getParent
in interfaceCategoryDraft
- Returns:
- parent
-
getOrderHint
Decimal value between 0 and 1 used to order Categories that are on the same level in the Category tree. If not set, a random value will be assigned.
- Specified by:
getOrderHint
in interfaceCategoryDraft
- Returns:
- orderHint
-
getExternalId
Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).
- Specified by:
getExternalId
in interfaceCategoryDraft
- Returns:
- externalId
-
getMetaTitle
Name of the Category used by external search engines for improved search engine performance.
- Specified by:
getMetaTitle
in interfaceCategoryDraft
- Returns:
- metaTitle
-
getMetaDescription
Description of the Category used by external search engines for improved search engine performance.
- Specified by:
getMetaDescription
in interfaceCategoryDraft
- Returns:
- metaDescription
-
getMetaKeywords
Keywords related to the Category for improved search engine performance.
- Specified by:
getMetaKeywords
in interfaceCategoryDraft
- Returns:
- metaKeywords
-
getCustom
Custom Fields for the Category.
- Specified by:
getCustom
in interfaceCategoryDraft
- Specified by:
getCustom
in interfaceCustomizableDraft<CategoryDraft>
- Returns:
- custom
-
getAssets
Media related to the Category.
- Specified by:
getAssets
in interfaceCategoryDraft
- Returns:
- assets
-
getKey
User-defined unique identifier for the Category.
- Specified by:
getKey
in interfaceCategoryDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setName
Description copied from interface:CategoryDraft
Name of the Category.
- Specified by:
setName
in interfaceCategoryDraft
- Parameters:
name
- value to be set
-
setSlug
Description copied from interface:CategoryDraft
User-defined identifier used as a deep-link URL to the related Category. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern
^[A-Za-z0-9_-]{2,256}+$
.- Specified by:
setSlug
in interfaceCategoryDraft
- Parameters:
slug
- value to be set
-
setDescription
Description copied from interface:CategoryDraft
Description of the Category.
- Specified by:
setDescription
in interfaceCategoryDraft
- Parameters:
description
- value to be set
-
setParent
Description copied from interface:CategoryDraft
Parent Category of the Category. The parent can be set by its
id
orkey
.- Specified by:
setParent
in interfaceCategoryDraft
- Parameters:
parent
- value to be set
-
setOrderHint
Description copied from interface:CategoryDraft
Decimal value between 0 and 1 used to order Categories that are on the same level in the Category tree. If not set, a random value will be assigned.
- Specified by:
setOrderHint
in interfaceCategoryDraft
- Parameters:
orderHint
- value to be set
-
setExternalId
Description copied from interface:CategoryDraft
Additional identifier for external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).
- Specified by:
setExternalId
in interfaceCategoryDraft
- Parameters:
externalId
- value to be set
-
setMetaTitle
Description copied from interface:CategoryDraft
Name of the Category used by external search engines for improved search engine performance.
- Specified by:
setMetaTitle
in interfaceCategoryDraft
- Parameters:
metaTitle
- value to be set
-
setMetaDescription
Description copied from interface:CategoryDraft
Description of the Category used by external search engines for improved search engine performance.
- Specified by:
setMetaDescription
in interfaceCategoryDraft
- Parameters:
metaDescription
- value to be set
-
setMetaKeywords
Description copied from interface:CategoryDraft
Keywords related to the Category for improved search engine performance.
- Specified by:
setMetaKeywords
in interfaceCategoryDraft
- Parameters:
metaKeywords
- value to be set
-
setCustom
Description copied from interface:CategoryDraft
Custom Fields for the Category.
- Specified by:
setCustom
in interfaceCategoryDraft
- Specified by:
setCustom
in interfaceCustomizableDraft<CategoryDraft>
- Parameters:
custom
- value to be set
-
setAssets
Description copied from interface:CategoryDraft
Media related to the Category.
- Specified by:
setAssets
in interfaceCategoryDraft
- Parameters:
assets
- values to be set
-
setAssets
Description copied from interface:CategoryDraft
Media related to the Category.
- Specified by:
setAssets
in interfaceCategoryDraft
- Parameters:
assets
- values to be set
-
setKey
Description copied from interface:CategoryDraft
User-defined unique identifier for the Category.
- Specified by:
setKey
in interfaceCategoryDraft
- Parameters:
key
- value to be set
-
equals
-
hashCode
public int hashCode()
-