org.jscience.ml.tigerxml.core
Class CorpusBuilder

java.lang.Object
  extended by org.jscience.ml.tigerxml.core.CorpusBuilder

public class CorpusBuilder
extends java.lang.Object

Provides static functionality for building a Corpus object.

See Also:
Corpus

Constructor Summary
CorpusBuilder()
           
 
Method Summary
static void buildCorpus(Corpus corp, org.w3c.dom.Element rootElement)
          Builds up a given (ideally empty) Corpus by getting all information from the given DOM Element rootElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorpusBuilder

public CorpusBuilder()
Method Detail

buildCorpus

public static void buildCorpus(Corpus corp,
                               org.w3c.dom.Element rootElement)
Builds up a given (ideally empty) Corpus by getting all information from the given DOM Element rootElement.

Parameters:
corp - The Corpus instance to be built (can be empty).
rootElement - The DOM Element containing the root element of a TIGER XML Document.