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 TypeMethodDescriptionvoid
addMetadata
(String name, Object value) boolean
Gets theItemCategory
of this item.@NotNull String
Gets the long description for the Item@NotNull String
Gets 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 String
getName()
Get the unique name of the ItemgetTags()
Get the tags for the Item.int
hashCode()
boolean
Gets the visibility of this item.void
setCategory
(ItemCategory category) Sets theItemCategory
of this item.void
setDescription
(@NotNull String description) Sets the long description for the Itemvoid
setDisplayName
(@NotNull String displayName) Sets the display name for this item.void
Set the unique ID of the Item.void
setMetadata
(Map<String, Object> metadata) Sets the metadata of string key-value pairs for this Item.void
setMetadataSpec
(MetadataSpec metadataSpec) void
Set the unique name for the Itemvoid
setPublicVisible
(boolean publicVisible) Sets the visibility of this item.void
Sets the tags for the Item.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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 theItemCategory
of this item.- Returns:
- the item category
-
setCategory
Sets theItemCategory
of 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
-