CopaServer
Change of Plan Application
 All Classes Functions Pages
Public Member Functions | List of all members
unicopa.copa.base.event.CategoryNodeImpl Class Reference

Simple implementation of the CategoryNode interface. More...

Inheritance diagram for unicopa.copa.base.event.CategoryNodeImpl:
Inheritance graph
Collaboration diagram for unicopa.copa.base.event.CategoryNodeImpl:
Collaboration graph

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< CategoryNodeImplgetChildren ()
 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...
 

Detailed Description

Simple implementation of the CategoryNode interface.

Author
Felix Wiemuth

Constructor & Destructor Documentation

unicopa.copa.base.event.CategoryNodeImpl.CategoryNodeImpl ( int  id,
String  name 
)

Create a new category node.

Parameters
id
name

Member Function Documentation

void unicopa.copa.base.event.CategoryNodeImpl.addChildNode ( CategoryNodeImpl  node)

Add a new child category to this category.

Parameters
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.

Returns

Implements unicopa.copa.base.event.CategoryNode.

int unicopa.copa.base.event.CategoryNodeImpl.getId ( )

Get the ID of this node.

Returns

Implements unicopa.copa.base.event.CategoryNode.

String unicopa.copa.base.event.CategoryNodeImpl.getName ( )

Get the name of this node.

The name represents the category.

Returns

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.

Parameters
paththe path to insert
Returns
the created and inserted node (last node of the path)
void unicopa.copa.base.event.CategoryNodeImpl.setName ( String  name)

Set the name of this node.

Parameters
name

The documentation for this class was generated from the following file: