javax.datamining.data
Interface TaxonomyObject

All Superinterfaces:
MiningObject, Taxonomy

public interface TaxonomyObject
extends Taxonomy

TaxonomyObject is a taxonomy hierarchy represented in a Java object.

Author:
JSR-73 Java Data Mining Expert Group
See Also:
MiningObject, Taxonomy

Method Summary
 void addChildren(java.lang.Object parent, java.lang.Object[] childArray)
          Establishes parent-child relationships between the specified parent and the specified children.
 void removeDescendants(java.lang.Object parent)
          Removes recursively the parent-child relationships between the specified parent category and its direct children, and so on.
 void removeRelationship(java.lang.Object parent, java.lang.Object[] childArray)
          Removes the parent-child relationships between the specified parent category and the specified children categories.
 
Methods inherited from interface javax.datamining.data.Taxonomy
getChildren, getLeaves, getParents, getRoots
 
Methods inherited from interface javax.datamining.MiningObject
getCreationDate, getCreatorInfo, getDescription, getName, getObjectIdentifier, getObjectType, setDescription
 

Method Detail

addChildren

public void addChildren(java.lang.Object parent,
                        java.lang.Object[] childArray)
                 throws JDMException
Establishes parent-child relationships between the specified parent and the specified children.

Neither the parameter parent nor childArray may be null. However, childArray may be empty.

Parameters:
parent -
childArray -
Returns:
void
Throws:
JDMException

removeDescendants

public void removeDescendants(java.lang.Object parent)
                       throws JDMException
Removes recursively the parent-child relationships between the specified parent category and its direct children, and so on.

The parameter parent must not be null.

Parameters:
parent - The parent category whose decendants are to be removed.
Returns:
void
Throws:
JDMException

removeRelationship

public void removeRelationship(java.lang.Object parent,
                               java.lang.Object[] childArray)
                        throws JDMException
Removes the parent-child relationships between the specified parent category and the specified children categories.

The parameter parent must be a direct partent of the entries in childArray. Neither the parameter parent nor childArray may be null.

Parameters:
parent -
childArray - An array of child categories whose relationship with the specified parent category is to be removed.
Returns:
void
Throws:
JDMException