|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MCRCategory
| Method Summary | |
|---|---|
List<MCRCategory> |
getChildren()
Returns a list of subcategories. |
MCRLabel |
getCurrentLabel()
|
MCRCategoryID |
getId()
|
MCRLabel |
getLabel(String lang)
|
Collection<MCRLabel> |
getLabels()
|
int |
getLevel()
Returns the hierarchie level of this category. |
MCRCategory |
getParent()
Returns the parent element |
MCRCategory |
getRoot()
Returns root category (the classification). |
URI |
getURI()
Returns the URI associated with this category. |
boolean |
hasChildren()
Tells if this category has subcategories. |
boolean |
isCategory()
|
boolean |
isClassification()
|
void |
setId(MCRCategoryID id)
|
void |
setURI(URI uri)
|
| Method Detail |
|---|
boolean isClassification()
boolean isCategory()
isClassification()boolean hasChildren()
getChildren()List<MCRCategory> getChildren()
null if no children are
present. As this method may need a new call the underlaying persistence
layer use hasChildren() if you just want to know if subcategories are
present. Changes to the list may not affect the underlaying persistence
layer.
hasChildren()MCRCategoryID getId()
void setId(MCRCategoryID id)
id - the id to setCollection<MCRLabel> getLabels()
MCRLabel getCurrentLabel()
MCRLabel getLabel(String lang)
int getLevel()
MCRCategory getRoot()
MCRCategory getParent()
URI getURI()
void setURI(URI uri)
uri - the URI to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||