|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.tools.tokenizer.LanguageResource
LanguageResource
class manages the language-specific
information needed by the tokenizer to process a document of that
language.
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 |
public LanguageResource(java.lang.String aLanguage, java.lang.String aResourceDir)
LanguageResource
for
aLanguage
by using the resource description files in
aResourceDir
.
aLanguage
- a String
with the name of the
language for which this class contains the resourcesaResourceDir
- a String
with the name of the
resource directory
InitializationException
- if an error occursMethod Detail |
public java.lang.String getLanguage()
String
with the languagepublic java.util.HashMap getTagsMap()
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.
HashMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |