Class AssetImpl
- All Implemented Interfaces:
Asset
,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
The representation to be sent to the server when creating a resource with custom fields.A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.getKey()
User-defined identifier for the asset.getName()
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.getTags()
int
hashCode()
void
The representation to be sent to the server when creating a resource with custom fields.void
setDescription
(LocalizedString description) A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.void
User-defined identifier for the asset.void
setName
(LocalizedString name) A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.void
setSources
(AssetSource... sources) set sourcesvoid
setSources
(List<AssetSource> sources) set sourcesvoid
set tagsvoid
set tagsMethods 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
-
Constructor Details
-
AssetImpl
public AssetImpl()create empty instance
-
-
Method Details
-
getKey
User-defined identifier for the asset. Asset keys are unique inside their container (a product variant or a category).
-
getSources
- Specified by:
getSources
in interfaceAsset
- Returns:
- sources
-
getName
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
-
getDescription
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- Specified by:
getDescription
in interfaceAsset
- Returns:
- description
-
getTags
-
getCustom
The representation to be sent to the server when creating a resource with custom fields.
-
setKey
Description copied from interface:Asset
User-defined identifier for the asset. Asset keys are unique inside their container (a product variant or a category).
-
setSources
Description copied from interface:Asset
set sources- Specified by:
setSources
in interfaceAsset
- Parameters:
sources
- values to be set
-
setSources
Description copied from interface:Asset
set sources- Specified by:
setSources
in interfaceAsset
- Parameters:
sources
- values to be set
-
setName
Description copied from interface:Asset
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
-
setDescription
Description copied from interface:Asset
A localized string is a JSON object where the keys are of IETF language tag, and the values the corresponding strings used for that language.
{ "de": "Hundefutter", "en": "dog food" }
- Specified by:
setDescription
in interfaceAsset
- Parameters:
description
- value to be set
-
setTags
Description copied from interface:Asset
set tags -
setTags
Description copied from interface:Asset
set tags -
setCustom
Description copied from interface:Asset
The representation to be sent to the server when creating a resource with custom fields.
-
equals
-
hashCode
public int hashCode()
-