Class CategoryImportImpl
- All Implemented Interfaces:
CategoryImport
,ImportResource
,io.vrap.rmf.base.client.ModelBase
The data representation for a Category to be imported that is persisted as a Category in the Project.
-
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
The custom fields for this Category.Maps toCategory.description
.Maps toCategory.externalId
.getKey()
User-defined unique identifier.Maps toCategory.metaDescription
.Maps toCategory.metaKeywords
.Maps toCategory.metaTitle
.getName()
Maps toCategory.name
.Maps toCategory.orderHint
.Maps toCategory.parent
.getSlug()
Maps toCategory.slug
.int
hashCode()
void
set assetsvoid
set assetsvoid
The custom fields for this Category.void
setDescription
(LocalizedString description) Maps toCategory.description
.void
setExternalId
(String externalId) Maps toCategory.externalId
.void
User-defined unique identifier.void
setMetaDescription
(LocalizedString metaDescription) Maps toCategory.metaDescription
.void
setMetaKeywords
(LocalizedString metaKeywords) Maps toCategory.metaKeywords
.void
setMetaTitle
(LocalizedString metaTitle) Maps toCategory.metaTitle
.void
setName
(LocalizedString name) Maps toCategory.name
.void
setOrderHint
(String orderHint) Maps toCategory.orderHint
.void
setParent
(CategoryKeyReference parent) Maps toCategory.parent
.void
setSlug
(LocalizedString slug) Maps toCategory.slug
.toString()
Methods inherited from interface com.commercetools.importapi.models.categories.CategoryImport
withCategoryImport
Methods inherited from interface com.commercetools.importapi.models.common.ImportResource
withImportResource
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
CategoryImportImpl
public CategoryImportImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier. If a Category with this
key
exists, it will be updated with the imported data.- Specified by:
getKey
in interfaceCategoryImport
- Specified by:
getKey
in interfaceImportResource
- Returns:
- key
-
getName
Maps to
Category.name
.- Specified by:
getName
in interfaceCategoryImport
- Returns:
- name
-
getSlug
Maps to
Category.slug
. Must match the pattern[-a-zA-Z0-9_]{2,256}
.- Specified by:
getSlug
in interfaceCategoryImport
- Returns:
- slug
-
getDescription
Maps to
Category.description
.- Specified by:
getDescription
in interfaceCategoryImport
- Returns:
- description
-
getParent
Maps to
Category.parent
. The Reference to the parent Category with which the Category is associated. If referenced Category does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Category is created.- Specified by:
getParent
in interfaceCategoryImport
- Returns:
- parent
-
getOrderHint
Maps to
Category.orderHint
.- Specified by:
getOrderHint
in interfaceCategoryImport
- Returns:
- orderHint
-
getExternalId
Maps to
Category.externalId
.- Specified by:
getExternalId
in interfaceCategoryImport
- Returns:
- externalId
-
getMetaTitle
Maps to
Category.metaTitle
.- Specified by:
getMetaTitle
in interfaceCategoryImport
- Returns:
- metaTitle
-
getMetaDescription
Maps to
Category.metaDescription
.- Specified by:
getMetaDescription
in interfaceCategoryImport
- Returns:
- metaDescription
-
getMetaKeywords
Maps to
Category.metaKeywords
.- Specified by:
getMetaKeywords
in interfaceCategoryImport
- Returns:
- metaKeywords
-
getAssets
- Specified by:
getAssets
in interfaceCategoryImport
- Returns:
- assets
-
getCustom
The custom fields for this Category.
- Specified by:
getCustom
in interfaceCategoryImport
- Returns:
- custom
-
setKey
Description copied from interface:CategoryImport
User-defined unique identifier. If a Category with this
key
exists, it will be updated with the imported data.- Specified by:
setKey
in interfaceCategoryImport
- Specified by:
setKey
in interfaceImportResource
- Parameters:
key
- value to be set
-
setName
Description copied from interface:CategoryImport
Maps to
Category.name
.- Specified by:
setName
in interfaceCategoryImport
- Parameters:
name
- value to be set
-
setSlug
Description copied from interface:CategoryImport
Maps to
Category.slug
. Must match the pattern[-a-zA-Z0-9_]{2,256}
.- Specified by:
setSlug
in interfaceCategoryImport
- Parameters:
slug
- value to be set
-
setDescription
Description copied from interface:CategoryImport
Maps to
Category.description
.- Specified by:
setDescription
in interfaceCategoryImport
- Parameters:
description
- value to be set
-
setParent
Description copied from interface:CategoryImport
Maps to
Category.parent
. The Reference to the parent Category with which the Category is associated. If referenced Category does not exist, thestate
of the ImportOperation will be set tounresolved
until the necessary Category is created.- Specified by:
setParent
in interfaceCategoryImport
- Parameters:
parent
- value to be set
-
setOrderHint
Description copied from interface:CategoryImport
Maps to
Category.orderHint
.- Specified by:
setOrderHint
in interfaceCategoryImport
- Parameters:
orderHint
- value to be set
-
setExternalId
Description copied from interface:CategoryImport
Maps to
Category.externalId
.- Specified by:
setExternalId
in interfaceCategoryImport
- Parameters:
externalId
- value to be set
-
setMetaTitle
Description copied from interface:CategoryImport
Maps to
Category.metaTitle
.- Specified by:
setMetaTitle
in interfaceCategoryImport
- Parameters:
metaTitle
- value to be set
-
setMetaDescription
Description copied from interface:CategoryImport
Maps to
Category.metaDescription
.- Specified by:
setMetaDescription
in interfaceCategoryImport
- Parameters:
metaDescription
- value to be set
-
setMetaKeywords
Description copied from interface:CategoryImport
Maps to
Category.metaKeywords
.- Specified by:
setMetaKeywords
in interfaceCategoryImport
- Parameters:
metaKeywords
- value to be set
-
setAssets
Description copied from interface:CategoryImport
set assets- Specified by:
setAssets
in interfaceCategoryImport
- Parameters:
assets
- values to be set
-
setAssets
Description copied from interface:CategoryImport
set assets- Specified by:
setAssets
in interfaceCategoryImport
- Parameters:
assets
- values to be set
-
setCustom
Description copied from interface:CategoryImport
The custom fields for this Category.
- Specified by:
setCustom
in interfaceCategoryImport
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-