sonification.dataimport.visbards_resourcetoolkit.model
Class DefaultCategoryPool

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.model.DefaultCategoryPool
All Implemented Interfaces:
CategoryPool

public class DefaultCategoryPool
extends java.lang.Object
implements CategoryPool


Constructor Summary
DefaultCategoryPool()
           
 
Method Summary
 void addCategory(Category cat)
          Add a category to the system.
 void addListener(CategoryPoolListener listener)
          Registers a listener.
 Category[] getAllCategories()
          Returns all categories in the system.
 Category[] getCategories(int capability, boolean presentationalOnly)
          Returns all categories with appropriate capability
 Category getCategory(java.lang.String name)
          Returns a category with the specified name, if not avaliable returns null.
 Category[] getDataCategories()
          Returns all non-pseudo categories in the system.
 Category[] getPresentationalCategories()
          Returns all presentational categoryes.
 PseudoCategory[] getPseudoCategories()
          Returns all pseudo categories in the system.
 void removeCategory(Category cat)
          Remove a category from the system.
 void removeListener(CategoryPoolListener listener)
          Unregisters a listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCategoryPool

public DefaultCategoryPool()
Method Detail

getCategory

public Category getCategory(java.lang.String name)
Returns a category with the specified name, if not avaliable returns null.

Specified by:
getCategory in interface CategoryPool

getAllCategories

public Category[] getAllCategories()
Returns all categories in the system. Members are of type Category.

Specified by:
getAllCategories in interface CategoryPool

getPresentationalCategories

public Category[] getPresentationalCategories()
Returns all presentational categoryes.

Specified by:
getPresentationalCategories in interface CategoryPool

getPseudoCategories

public PseudoCategory[] getPseudoCategories()
Returns all pseudo categories in the system. Members are of type Category.

Specified by:
getPseudoCategories in interface CategoryPool

getDataCategories

public Category[] getDataCategories()
Returns all non-pseudo categories in the system.

Specified by:
getDataCategories in interface CategoryPool

getCategories

public Category[] getCategories(int capability,
                                boolean presentationalOnly)
Returns all categories with appropriate capability

Specified by:
getCategories in interface CategoryPool

addCategory

public void addCategory(Category cat)
Add a category to the system.

Specified by:
addCategory in interface CategoryPool

removeCategory

public void removeCategory(Category cat)
Remove a category from the system.

Specified by:
removeCategory in interface CategoryPool

addListener

public void addListener(CategoryPoolListener listener)
Registers a listener.

Specified by:
addListener in interface CategoryPool

removeListener

public void removeListener(CategoryPoolListener listener)
Unregisters a listener.

Specified by:
removeListener in interface CategoryPool