Class Tag

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

1public class Tag
2extends Item

Nested Class Summary 

ClassDescriptionModifier and Type
Tag.TypeSpecifies which type a tag belongs to.static interface

Fields 

FieldDescriptionModifier and TypeRequired?
tagTypeThe type of a tag. For values, see Tag.Type.java.lang.StringYes

Fields inherited from class Item:

Constructors 

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

Tag 

1public Tag(@NonNull
2           String id,
3           @NonNull
4           String tagType)

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

Methods 

MethodModifier and Type
fromJSONObject(org.json.JSONObject json, java.lang.String id)static Tag
getItemType()String

fromJSONObject 

1public static Tag fromJSONObject(org.json.JSONObject json,
2                                 java.lang.String id)

getItemType 

1public String getItemType()

Specified by getItemType in class Item.