Class Item
java.lang.Object
dev.getelements.elements.sdk.model.goods.Item
- All Implemented Interfaces:
Taggable,Serializable
Represents an Item that is a Digital Good.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(String name, Object value) booleanGets theItemCategoryof this item.@NotNull StringGets the long description for the Item@NotNull StringGets the display name for this item, suitable for use at the presentation tier.getId()Get the unique ID of the Item.Gets a copy of metadata of string key-value pairs for this Item.@NotNull StringgetName()Get the unique name of the ItemgetTags()Get the tags for the Item.inthashCode()booleanGets the visibility of this item.voidsetCategory(ItemCategory category) Sets theItemCategoryof this item.voidsetDescription(@NotNull String description) Sets the long description for the ItemvoidsetDisplayName(@NotNull String displayName) Sets the display name for this item.voidSet the unique ID of the Item.voidsetMetadata(Map<String, Object> metadata) Sets the metadata of string key-value pairs for this Item.voidsetMetadataSpec(MetadataSpec metadataSpec) voidSet the unique name for the ItemvoidsetPublicVisible(boolean publicVisible) Sets the visibility of this item.voidSets the tags for the Item.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.model.Taggable
addTag, validateAndAddTag, validateAndSetTags, validateTags
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
getId
Get the unique ID of the Item.- Returns:
- the Item's unique ID
-
setId
Set the unique ID of the Item.- Parameters:
id- the Item's unique ID
-
getName
Get the unique name of the Item- Returns:
- The unique name for the Item
-
setName
Set the unique name for the Item- Parameters:
name- unique name for the Item
-
getTags
Get the tags for the Item. The returned List should be treated as immutable. -
setTags
Sets the tags for the Item. -
getDisplayName
Gets the display name for this item, suitable for use at the presentation tier.- Returns:
- The display name for the Item
-
setDisplayName
Sets the display name for this item.- Parameters:
displayName- The display name for this item
-
getDescription
Gets the long description for the Item- Returns:
- The long description for the Item
-
setDescription
Sets the long description for the Item- Parameters:
description- The long description for the Item
-
getMetadataSpec
-
setMetadataSpec
-
getMetadata
Gets a copy of metadata of string key-value pairs for this Item. Changes to the returned Map are not reflected on this Item.- Returns:
- The metadata for the Item
-
setMetadata
Sets the metadata of string key-value pairs for this Item.- Parameters:
metadata- The metadata for the Item
-
getCategory
Gets theItemCategoryof this item.- Returns:
- the item category
-
setCategory
Sets theItemCategoryof this item.- Parameters:
category- the item category
-
isPublicVisible
public boolean isPublicVisible()Gets the visibility of this item.- Returns:
- visibility
-
setPublicVisible
public void setPublicVisible(boolean publicVisible) Sets the visibility of this item. -
addMetadata
-
equals
-
hashCode
public int hashCode() -
toString
-