|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Category
Hierarchical categorization of information. Categories can be used as attribute values.
Attribute
Field Summary | |
---|---|
static Category[] |
CATEGORY_ARRAY
|
static RaplaType |
TYPE
|
Fields inherited from interface org.rapla.entities.Entity |
---|
ENTITY_ARRAY |
Method Summary | |
---|---|
void |
addCategory(Category category)
add a sub-category. |
Category |
findCategory(Category copy)
find a sub-category in that equals the specified category. |
Category[] |
getCategories()
returns all subcategories |
Category |
getCategory(String key)
returns the subcategory with the specified key. |
int |
getDepth()
returns the number of ancestors. |
String |
getKey()
returns the key of the category |
Category |
getParent()
Returns the parent of this category or null if the category has no parent. |
String |
getPath(Category rootCategory,
Locale locale)
returns the path form the rootCategory to this category. |
boolean |
hasCategory(Category category)
returns true if the passed category is a direct child of this category |
boolean |
isAncestorOf(Category category)
returns true this category is an ancestor (parent or parent of parent, ...) of the specified category |
void |
removeCategory(Category category)
remove a sub-category |
void |
setKey(String key)
set the key of the category. |
Methods inherited from interface org.rapla.entities.MultiLanguageNamed |
---|
getName |
Methods inherited from interface org.rapla.entities.Named |
---|
getName |
Methods inherited from interface org.rapla.entities.Entity |
---|
isIdentical, isPersistant |
Methods inherited from interface org.rapla.entities.RaplaObject |
---|
getRaplaType |
Methods inherited from interface org.rapla.entities.Annotatable |
---|
getAnnotation, getAnnotation, getAnnotationKeys, setAnnotation |
Field Detail |
---|
static final RaplaType TYPE
static final Category[] CATEGORY_ARRAY
Method Detail |
---|
void addCategory(Category category)
void removeCategory(Category category)
Category[] getCategories()
Category getCategory(String key)
Category findCategory(Category copy)
Category getParent()
boolean hasCategory(Category category)
void setKey(String key)
String getKey()
boolean isAncestorOf(Category category)
String getPath(Category rootCategory, Locale locale)
int getDepth()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |