|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mortbay.xml.XmlConfiguration
public class XmlConfiguration
Configure Objects from XML. This class reads an XML file conforming to the configure.dtd DTD and uses it to configure and object by calling set, put or other methods on the object.
Constructor Summary | |
---|---|
XmlConfiguration(InputStream configuration)
Constructor. |
|
XmlConfiguration(String configuration)
Constructor. |
|
XmlConfiguration(URL configuration)
Constructor. |
Method Summary | |
---|---|
Object |
configure()
Configure an object. |
void |
configure(Object obj)
Configure an object. |
Map |
getIdMap()
|
Map |
getProperties()
|
static void |
main(String[] args)
|
void |
setIdMap(Map map)
|
void |
setProperties(Map map)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlConfiguration(URL configuration) throws SAXException, IOException
configuration
-
SAXException
IOException
public XmlConfiguration(String configuration) throws SAXException, IOException
configuration
- String of XML configuration commands excluding the normal XML preamble.
The String should start with a " SAXException
IOException
public XmlConfiguration(InputStream configuration) throws SAXException, IOException
configuration
- An input stream containing a complete e.g. configuration file
SAXException
IOException
Method Detail |
---|
public Map getIdMap()
public void setIdMap(Map map)
public void setProperties(Map map)
public Map getProperties()
public void configure(Object obj) throws Exception
obj
- The object to be configured.
Exception
public Object configure() throws Exception
Exception
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |