Simple implementation of the CategoryNode interface. More...


Public Member Functions | |
| CategoryNodeImpl (int id, String name) | |
| Create a new category node. More... | |
| void | addChildNode (CategoryNodeImpl node) |
| Add a new child category to this category. More... | |
| CategoryNode | insertNode (List< String > path) |
| Merge the given path into the subtree denoted by this CategoryNode. More... | |
| int | getId () |
| Get the ID of this node. More... | |
| String | getName () |
| Get the name of this node. More... | |
| List< CategoryNodeImpl > | getChildren () |
| Get all category nodes that are children of this node in the category tree. More... | |
| void | setName (String name) |
| Set the name of this node. More... | |
Simple implementation of the CategoryNode interface.
| unicopa.copa.base.event.CategoryNodeImpl.CategoryNodeImpl | ( | int | id, |
| String | name | ||
| ) |
Create a new category node.
| id | |
| name |
| void unicopa.copa.base.event.CategoryNodeImpl.addChildNode | ( | CategoryNodeImpl | node) |
Add a new child category to this category.
| node |
| List<CategoryNodeImpl> unicopa.copa.base.event.CategoryNodeImpl.getChildren | ( | ) |
Get all category nodes that are children of this node in the category tree.
If the list is empty, this category node is a leaf.
Implements unicopa.copa.base.event.CategoryNode.
| int unicopa.copa.base.event.CategoryNodeImpl.getId | ( | ) |
| String unicopa.copa.base.event.CategoryNodeImpl.getName | ( | ) |
Get the name of this node.
The name represents the category.
Implements unicopa.copa.base.event.CategoryNode.
| CategoryNode unicopa.copa.base.event.CategoryNodeImpl.insertNode | ( | List< String > | path) |
Merge the given path into the subtree denoted by this CategoryNode.
| path | the path to insert |
| void unicopa.copa.base.event.CategoryNodeImpl.setName | ( | String | name) |
Set the name of this node.
| name |
1.8.4