jxUtil 0.6

org.sourceforge.jxutil.xml
Class XMLConfig

java.lang.Object
  |
  +--org.sourceforge.jxutil.xml.XMLConfig
Direct Known Subclasses:
DBTestConfig, JDBCConfig, MenuConfig, XMLJavaConfig

public abstract class XMLConfig
extends Object

XMLConfig is a framework for instantiating Java objects from an XML description.


Nested Class Summary
static class XMLConfig.ElementHandler
          The base class for a factories that can deserialize objects.
static class XMLConfig.RefHandler
          A generic handler for references to other IDs.
 
Field Summary
protected  Document doc
           
private  TreeMap handlerMap
           
protected  TreeMap idCache
           
 
Constructor Summary
protected XMLConfig(DocumentBuilder builder, File file, TreeMap handlerMap)
           
protected XMLConfig(Document doc, TreeMap handlerMap)
           
protected XMLConfig(File file, TreeMap handlerMap)
           
protected XMLConfig(URL url, TreeMap handlerMap)
           
 
Method Summary
 Object getById(String elementId)
           
 Document getDocument()
           
 Object makeObject(Element el)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

protected final Document doc

handlerMap

private final TreeMap handlerMap

idCache

protected final TreeMap idCache
Constructor Detail

XMLConfig

protected XMLConfig(DocumentBuilder builder,
                    File file,
                    TreeMap handlerMap)
             throws ParserConfigurationException,
                    SAXException,
                    IOException

XMLConfig

protected XMLConfig(Document doc,
                    TreeMap handlerMap)

XMLConfig

protected XMLConfig(File file,
                    TreeMap handlerMap)
             throws ParserConfigurationException,
                    SAXException,
                    IOException

XMLConfig

protected XMLConfig(URL url,
                    TreeMap handlerMap)
             throws ParserConfigurationException,
                    SAXException,
                    IOException
Method Detail

getById

public Object getById(String elementId)
               throws Exception
Exception

getDocument

public Document getDocument()

makeObject

public Object makeObject(Element el)
                  throws Exception
Exception

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.