org.mmbase.util
Class XMLMMLanguageReader

java.lang.Object
  |
  +--org.mmbase.util.XMLBasicReader
        |
        +--org.mmbase.util.XMLMMLanguageReader

public class XMLMMLanguageReader
extends XMLBasicReader

Version:
$Id: XMLMMLanguageReader.java,v 1.5 2001/04/19 12:00:25 michiel Exp $ $Log: XMLMMLanguageReader.java,v $ Revision 1.5 2001/04/19 12:00:25 michiel michiel: logging, indentation Revision 1.4 2000/08/20 10:53:44 case cjr: minor changes, this class is now actually used XMLLanguageReader parses the .xml file in its argument in its constructor. This .xml file should be formatted according to mmlanguage.dtd. - getLanguageCode() - returns the language code of the .xml file - getDictionary() - returns a hashtable with mmbase term identifiers to their translations in this specific language. Uglinesses: - no check whether the input file exists - doesn't read when the xml:lang attribute is absent, but doesn't generate an error either
Author:
cjr@dds.nl

Fields inherited from class org.mmbase.util.XMLBasicReader
document
 
Constructor Summary
XMLMMLanguageReader(java.lang.String filename)
           
 
Method Summary
protected  void generateFromDOM()
          generateFromDOM() walks the DOM-tree and converts the result to a Hashtable
 java.util.Hashtable getDictionary()
           
 java.lang.String getLanguageCode()
           
static void main(java.lang.String[] argv)
          Test code:
 
Methods inherited from class org.mmbase.util.XMLBasicReader
getChildElements, getChildElements, getChildElements, getChildElements, getDocumentBuilder, getElementAttributeValue, getElementAttributeValue, getElementByPath, getElementByPath, getElementName, getElementValue, getElementValue, getFileName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMMLanguageReader

public XMLMMLanguageReader(java.lang.String filename)
Method Detail

generateFromDOM

protected void generateFromDOM()
generateFromDOM() walks the DOM-tree and converts the result to a Hashtable

getLanguageCode

public java.lang.String getLanguageCode()

getDictionary

public java.util.Hashtable getDictionary()

main

public static void main(java.lang.String[] argv)
Test code:


MMBase 2002