Class Tag

Additional tags about an item such as Brand for products or Author and Keywords for articles.

ClassDescriptionModifier and Type
Tag.TypeSpecifies which type a tag belongs to.static interface
FieldDescriptionModifier and Type
tagTypeThe type of a tag. See Tag.Type for values.java.lang.String

Fields inherited from class Item:

tagType

This is a required field.

The type of a tag. See Tag.Type for values.

ConstructorDescription
Tag(java.lang.String id, java.lang.String tagType)Creates a Tag with the required id and type only.

Tag

Creates a Tag with the required id and type only. The tag can then be further modified.

Parameters

ParameterDescriptionRequired?
idSee Item.idYes
tagTypeSee Tag.TypeYes
MethodModifier and Type
fromJSONObject(org.json.JSONObject json, java.lang.String id)static Tag
toJSONObject()org.json.JSONObject

toJSONObject

Overrides

toJSONObject in class Item

fromJSONObject