IBM Information Integrator for Content V8.2 APIs

com.ibm.mm.beans.infomining
Class CMBTaxonomy

java.lang.Object
  |
  +--com.ibm.mm.beans.infomining.CMBTaxonomy

public class CMBTaxonomy
extends java.lang.Object

A taxonomy is a tree where every node is a category object.


Method Summary
 boolean categoryExists(java.lang.String path)
          Checks if there is a category with the specified path.
 boolean categoryExists(java.lang.String[] path)
          Checks if there is a category with the specified path, assuming the array starts with the name of the root category.
 CMBCategory[] getCategories()
          Returns a list of all categories of the tree.
 CMBCategory getCategory(java.lang.String path)
          Returns the category with the specified path.
 CMBCategory getCategory(java.lang.String[] path)
          Returns the category with the specified path.
 CMBCategory getRootCategory()
          Returns the root of the tree.
 char getSeparator()
          Returns the current separator string.
 java.sql.Timestamp getTimestamp()
          Returns the timestamp of this taxonomy.
 void setSeparator(char separator)
          Sets the character to be used to separate category names in path strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootCategory

public CMBCategory getRootCategory()
Returns the root of the tree.

getCategories

public CMBCategory[] getCategories()
Returns a list of all categories of the tree.

getCategory

public CMBCategory getCategory(java.lang.String path)
                        throws CMBNoSuchCategoryException
Returns the category with the specified path. The current separator character is used to determine the category names.

getCategory

public CMBCategory getCategory(java.lang.String[] path)
                        throws CMBNoSuchCategoryException
Returns the category with the specified path.

categoryExists

public boolean categoryExists(java.lang.String path)
Checks if there is a category with the specified path. The current separator character is used to determine the category names.

categoryExists

public boolean categoryExists(java.lang.String[] path)
Checks if there is a category with the specified path, assuming the array starts with the name of the root category.

setSeparator

public void setSeparator(char separator)
Sets the character to be used to separate category names in path strings.

getSeparator

public char getSeparator()
Returns the current separator string.

getTimestamp

public java.sql.Timestamp getTimestamp()
Returns the timestamp of this taxonomy. You can check this timestamp against the catalog to make sure you still have to most recent version of the taxonomy.


IBM Information Integrator for Content V8.2 APIs

© Copyright International Business Machines Corporation 1996, 2003 IBM Corp. All rights reserved.