|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.configurexml.DefaultJavaBeanConfigXML
public class DefaultJavaBeanConfigXML
Provides services for storing Java Beans to XML using reflection.
| Constructor Summary | |
|---|---|
DefaultJavaBeanConfigXML()
|
|
| Method Summary | |
|---|---|
boolean |
load(Element e)
Create a set of configured objects from their XML description |
void |
load(Element e,
Object o)
Create a set of configured objects from their XML description, using an auxiliary object. |
Element |
store(Object o)
Store the |
| Methods inherited from class jmri.configurexml.AbstractXmlAdapter |
|---|
creationErrorEncountered, getConfigXmlManager, loadDeferred, loadOrder, setConfigXmlManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJavaBeanConfigXML()
| Method Detail |
|---|
public boolean load(Element e)
throws Exception
XmlAdapter
e - Top-level XML element containing the description
Exception - when a error prevents creating the objects as
as required by the input XML.
public void load(Element e,
Object o)
throws Exception
XmlAdapterFor example, the auxilary object o might be a manager or GUI of some type that needs to be informed as each object is created.
e - Top-level XML element containing the descriptiono - Implementation-specific Object needed for the conversion
Exception - when a error prevents creating the objects as
as required by the input XML.public Element store(Object o)
XmlAdapter
o - The object to be recorded. Specific XmlAdapter
implementations will require this to be of a specific
type; that binding is done in ConfigXmlManager.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||