de.dfki.lt.tools.tokenizer
Class LanguageResource

java.lang.Object
  extended byde.dfki.lt.tools.tokenizer.LanguageResource

public class LanguageResource
extends java.lang.Object

LanguageResource class manages the language-specific information needed by the tokenizer to process a document of that language.

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

Constructor Summary
LanguageResource(java.lang.String aLanguage, java.lang.String aResourceDir)
          This creates a new instance of LanguageResource for aLanguage by using the resource description files in aResourceDir.
 
Method Summary
 java.lang.String getLanguage()
          This returns the language of this language resource.
 java.util.HashMap getTagsMap()
          This returns a HashMap that maps class names to their tags as defined in the class definition file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LanguageResource

public LanguageResource(java.lang.String aLanguage,
                        java.lang.String aResourceDir)
This creates a new instance of LanguageResource for aLanguage by using the resource description files in aResourceDir.

Parameters:
aLanguage - a String with the name of the language for which this class contains the resources
aResourceDir - a String with the name of the resource directory
Throws:
InitializationException - if an error occurs
Method Detail

getLanguage

public java.lang.String getLanguage()
This returns the language of this language resource.

Returns:
a String with the language

getTagsMap

public java.util.HashMap getTagsMap()
This returns a HashMap that maps class names to their tags as defined in the class definition file. The class names are used as annotations in the annotated string. The tags could be used as xml tags when creating an xml structure from the annotated string.

Returns:
a HashMap