com.raritantechnologies.verity.topic
Class TaxParser

java.lang.Object
  extended bycom.raritantechnologies.verity.topic.TaxParser

public class TaxParser
extends java.lang.Object

Loads a Verity 5.0 TaxDef XML file. Use to import taxonomies from Verity Intelligent Classifier, etc.


Constructor Summary
TaxParser()
           
 
Method Summary
 java.util.ArrayList getAllChildren()
           
 boolean getIncludeRootNode()
           
 java.lang.String getPathSeparator()
           
 TreeNode getRoot()
           
 void loadTaxonomy(org.w3c.dom.Document taxDoc)
           
 void loadTaxonomy(java.io.Reader taxFile)
           
 void loadTaxonomy(java.lang.String taxXML)
           
 void parseFile(java.io.File taxFile)
           
 void setIncludeRootNode(boolean b)
           
 void setPathSeparator(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxParser

public TaxParser()
Method Detail

setIncludeRootNode

public void setIncludeRootNode(boolean b)

getIncludeRootNode

public boolean getIncludeRootNode()

setPathSeparator

public void setPathSeparator(java.lang.String s)

getPathSeparator

public java.lang.String getPathSeparator()

getRoot

public TreeNode getRoot()

getAllChildren

public java.util.ArrayList getAllChildren()

parseFile

public void parseFile(java.io.File taxFile)
               throws ParseException
Throws:
ParseException

loadTaxonomy

public void loadTaxonomy(java.io.Reader taxFile)
                  throws ParseException
Throws:
ParseException

loadTaxonomy

public void loadTaxonomy(java.lang.String taxXML)
                  throws ParseException
Throws:
ParseException

loadTaxonomy

public void loadTaxonomy(org.w3c.dom.Document taxDoc)
                  throws ParseException
Throws:
ParseException