|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.model.Element
com.google.gdata.model.atom.Category
public class Category
The Category class represents the data model for the Atom category element.
Field Summary | |
---|---|
static ElementKey<java.lang.Void,Category> |
KEY
The key for this element. |
static AttributeKey<java.lang.String> |
LABEL
The category label attribute. |
static AttributeKey<java.lang.String> |
SCHEME
The category scheme attribute. |
static AttributeKey<java.lang.String> |
TERM
The category term attribute. |
static AttributeKey<java.lang.String> |
XML_LANG
Qualified name for the XML lang attribute |
Constructor Summary | |
---|---|
Category()
Constructs a new category instance using the default metadata. |
|
Category(java.lang.String category)
Constructs a new category from a Category string. |
|
Category(java.lang.String scheme,
java.lang.String term)
Constructs a new category with the specified scheme and term values. |
|
Category(java.lang.String scheme,
java.lang.String term,
java.lang.String label)
Constructs a new category with the specified scheme, term, and label values. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getLabel()
Returns the category label or null if there is no label value. |
java.lang.String |
getLabelLang()
Returns the language associated with the category label (or null
if undefined). |
java.lang.String |
getScheme()
Returns the category scheme or null if the category does not have
a scheme. |
java.lang.String |
getTerm()
Returns the category term. |
int |
hashCode()
|
Category |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
void |
setLabel(java.lang.String label)
Sets the category label. |
void |
setLabelLang(java.lang.String lang)
Sets the language associated with the category label (or nulll if
undefined). |
void |
setScheme(java.lang.String scheme)
Sets the category scheme. |
void |
setTerm(java.lang.String term)
Sets the category term value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,Category> KEY
public static final AttributeKey<java.lang.String> SCHEME
public static final AttributeKey<java.lang.String> TERM
public static final AttributeKey<java.lang.String> LABEL
public static final AttributeKey<java.lang.String> XML_LANG
Constructor Detail |
---|
public Category()
public Category(java.lang.String category)
category
- the category stringpublic Category(java.lang.String scheme, java.lang.String term)
public Category(java.lang.String scheme, java.lang.String term, java.lang.String label)
Method Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public Category lock()
Element
lock
in class Element
public java.lang.String getScheme()
null
if the category does not have
a scheme.
getScheme
in interface ICategory
null
.public void setScheme(java.lang.String scheme)
null
indicates that there is
no category scheme.
scheme
- category scheme URI.public java.lang.String getTerm()
getTerm
in interface ICategory
public void setTerm(java.lang.String term)
term
- public java.lang.String getLabel()
null
if there is no label value.
getLabel
in interface ICategory
public void setLabel(java.lang.String label)
null
indicates that there is
no label.
label
- category label value.public java.lang.String getLabelLang()
null
if undefined).
public void setLabelLang(java.lang.String lang)
nulll
if
undefined).
lang
- label language.public java.lang.String toString()
toString
in class Element
public boolean equals(java.lang.Object obj)
equals
in class Element
public int hashCode()
hashCode
in class Element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |