IBM Information Integrator for Content V8.2 APIs

com.ibm.mm.beans.infomining
Class CMBCategory

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

public class CMBCategory
extends java.lang.Object

A category represents a node in a taxonomy. A taxonomy is a tree of categories. The taxonomy of a catalog can be retrieved using CMBCatalogService.getTaxonomy().


Method Summary
 CMBCategory[] getChildren()
          Returns all direct child categories.
 java.lang.String getName()
          Returns the name of the category.
 CMBCategory getParent()
          Returns the parent category.
 java.lang.String[] getPathAsArray()
          Returns the category path as an array of names.
 java.lang.String getPathAsString()
          Returns the category path as a string of separated category names.
 CMBTaxonomy getTaxonomy()
          Returns the taxonomy object this category belongs to.
 java.lang.String toString()
          Returns the String representation of this category.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the category.
Returns:
the category name

getParent

public CMBCategory getParent()
Returns the parent category.
Returns:
the parent category

getChildren

public CMBCategory[] getChildren()
Returns all direct child categories.
Returns:
the child cateogries

getPathAsArray

public java.lang.String[] getPathAsArray()
Returns the category path as an array of names. The array starts with the root category name.
Returns:
the category path array
See Also:
CMBTaxonomy.setSeparator(char)

getPathAsString

public java.lang.String getPathAsString()
Returns the category path as a string of separated category names. The separator set in the taxonomy is used.
Returns:
the category path string

getTaxonomy

public CMBTaxonomy getTaxonomy()
Returns the taxonomy object this category belongs to.
Returns:
the taxonomy object

toString

public java.lang.String toString()
Returns the String representation of this category.
Overrides:
toString in class java.lang.Object
Returns:
the separated path string as returned by getPathAsString().


IBM Information Integrator for Content V8.2 APIs

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