|
|||||||||
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.atompub.Categories
public class Categories
Value of the app:categories tag.
Nested Class Summary | |
---|---|
static class |
Categories.Fixed
Indicates whether the list of categories is a fixed or an open set. |
Field Summary | |
---|---|
static AttributeKey<Categories.Fixed> |
FIXED
Indicates whether the list of categories is a fixed or an open set. |
static AttributeKey<java.lang.String> |
HREF
An IRI reference to a Category Document. |
static ElementKey<java.lang.Void,Categories> |
KEY
The key for this element. |
static AttributeKey<java.lang.String> |
SCHEME
Default scheme of the contained category elements. |
Constructor Summary | |
---|---|
Categories()
Constructs an instance using the default key. |
Method Summary | |
---|---|
Categories |
addCategory(Category category)
Adds a new category. |
void |
clearCategories()
Removes all existing category instances. |
java.util.List<Category> |
getCategories()
Returns the categories. |
Categories.Fixed |
getFixed()
Returns the indicates whether the list of categories is a fixed or an open set. |
java.lang.String |
getHref()
Returns the an IRI reference to a Category Document. |
java.lang.String |
getScheme()
Returns the default scheme of the contained category elements. |
boolean |
hasCategories()
Returns whether it has the categories. |
boolean |
hasFixed()
Returns whether it has the indicates whether the list of categories is a fixed or an open set. |
boolean |
hasHref()
Returns whether it has the an IRI reference to a Category Document. |
boolean |
hasScheme()
Returns whether it has the default scheme of the contained category elements. |
Categories |
lock()
Locks this element. |
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element. |
boolean |
removeCategory(Category category)
Removes an existing category. |
Categories |
setFixed(Categories.Fixed fixed)
Sets the indicates whether the list of categories is a fixed or an open set. |
Categories |
setHref(java.lang.String href)
Sets the an IRI reference to a Category Document. |
Categories |
setScheme(java.lang.String scheme)
Sets the default scheme of the contained category elements. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ElementKey<java.lang.Void,Categories> KEY
public static final AttributeKey<Categories.Fixed> FIXED
public static final AttributeKey<java.lang.String> HREF
public static final AttributeKey<java.lang.String> SCHEME
Constructor Detail |
---|
public Categories()
Method Detail |
---|
public static void registerMetadata(MetadataRegistry registry)
public Categories lock()
Element
lock
in class Element
public java.util.List<Category> getCategories()
public Categories addCategory(Category category)
category
- categorypublic boolean removeCategory(Category category)
category
- category
public void clearCategories()
public boolean hasCategories()
public Categories.Fixed getFixed()
public Categories setFixed(Categories.Fixed fixed)
fixed
- indicates whether the list of categories is a fixed or an open
set or null
to reset
public boolean hasFixed()
public java.lang.String getHref()
public Categories setHref(java.lang.String href)
href
- an IRI reference to a Category Document or null
to
reset
public boolean hasHref()
public java.lang.String getScheme()
public Categories setScheme(java.lang.String scheme)
scheme
- default scheme of the contained category elements or null
to reset
public boolean hasScheme()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |