|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.arooa.xml.XMLConfiguration
public class XMLConfiguration
An ArooaConfiguration
that wraps some XML data and
allows it to be parsed.
Nested Class Summary | |
---|---|
static interface |
XMLConfiguration.SaveHandler
|
Constructor Summary | |
---|---|
XMLConfiguration(File file)
Constructor for a file. |
|
XMLConfiguration(String resource,
ClassLoader maybeClassLoader)
Constructor for a ClassLoader resource. |
|
XMLConfiguration(String systemId,
InputStream in)
Constructor for an InputStream. |
|
XMLConfiguration(String systemId,
String xml)
Constructor for Text. |
|
XMLConfiguration(URL url)
Constructor for a URL. |
Method Summary | |
---|---|
XMLConfiguration.SaveHandler |
getSaveHandler()
|
ConfigurationHandle |
parse(ArooaContext parentContext)
Parse the encapsulated configuration. |
void |
setSaveHandler(XMLConfiguration.SaveHandler saveHandler)
Get the resultant XML from calling ConfigurationHandle.save() . |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XMLConfiguration(File file)
file
- public XMLConfiguration(String systemId, String xml)
systemId
- xml
- public XMLConfiguration(String resource, ClassLoader maybeClassLoader)
E.g. new XMLConfiguration("org/oddjob/stuff/config.xml");
resource
- public XMLConfiguration(String systemId, InputStream in)
systemId
- in
- public XMLConfiguration(URL url)
url
- Method Detail |
---|
public ConfigurationHandle parse(ArooaContext parentContext) throws ArooaParseException
ArooaConfiguration
parse
in interface ArooaConfiguration
parentContext
- The parent context to use.
ConfigurationHandle
.
ArooaParseException
public void setSaveHandler(XMLConfiguration.SaveHandler saveHandler)
ConfigurationHandle.save()
.
public XMLConfiguration.SaveHandler getSaveHandler()
public String toString()
toString
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |