de.dfki.lt.tools.tokenizer
Class NumbersDescription

java.lang.Object
  extended byde.dfki.lt.tools.tokenizer.Description
      extended byde.dfki.lt.tools.tokenizer.NumbersDescription

public class NumbersDescription
extends Description

NumbersDescription extends Description. It manages the content of a numbers description file.

Version:
$Id: NumbersDescription.java,v 1.5 2005/04/12 08:47:37 steffen Exp $
Author:
Joerg Steffen, DFKI

Field Summary
protected static java.lang.String DIGITS_RULE
          This is the name of the digits rule.
protected static java.lang.String ORDINAL_RULE
          This is the name of the ordinal number rule.
protected static java.lang.String SIMPLE_DIGITS_RULE
          This is the name of the digits probe rule.
 
Fields inherited from class de.dfki.lt.tools.tokenizer.Description
DEF_CLASS, DEF_REGEXP, definitionsMap, DEFS, FACTORY, LIST_ENCODING, LIST_FILE, LISTS, listsMap, regExpMap, RULES, rulesMap
 
Constructor Summary
NumbersDescription(org.w3c.dom.Document numbDescr, java.util.Set classes)
          This creates a new instance of NumbersDescription for the numbers description contained in the dom Document numbDescr.
 
Methods inherited from class de.dfki.lt.tools.tokenizer.Description
getDefinitionsMap, getListsMap, getRegExpMap, getRulesMap, loadDefinitions, loadLists, loadRules, setDefinitionsMap, setListsMap, setRegExpMap, setRulesMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_DIGITS_RULE

protected static final java.lang.String SIMPLE_DIGITS_RULE
This is the name of the digits probe rule.

See Also:
Constant Field Values

ORDINAL_RULE

protected static final java.lang.String ORDINAL_RULE
This is the name of the ordinal number rule.

See Also:
Constant Field Values

DIGITS_RULE

protected static final java.lang.String DIGITS_RULE
This is the name of the digits rule.

See Also:
Constant Field Values
Constructor Detail

NumbersDescription

public NumbersDescription(org.w3c.dom.Document numbDescr,
                          java.util.Set classes)
This creates a new instance of NumbersDescription for the numbers description contained in the dom Document numbDescr.

Parameters:
numbDescr - a dom Document with the numbers description
classes - a Set with the defined classes, used for validation
Throws:
InitializationException - if an error occurs