|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.configurexml.LocoAddressXml
public class LocoAddressXml
Handle XML configuration for LocoAddress objects.
| Constructor Summary | |
|---|---|
LocoAddressXml()
|
|
| Method Summary | |
|---|---|
LocoAddress |
getAddress(Element element)
|
boolean |
load(Element element)
Create a set of configured objects from their XML description |
void |
load(Element element,
Object o)
Create a set of configured objects from their XML description, using an auxiliary object. |
Element |
store(Object o)
Default implementation for storing the contents of a LocoAddress |
| 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 LocoAddressXml()
| Method Detail |
|---|
public Element store(Object o)
o - Object to store, of type LocoAddress
public boolean load(Element element)
XmlAdapter
element - Top-level XML element containing the description
public LocoAddress getAddress(Element element)
public void load(Element element,
Object o)
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.
element - Top-level XML element containing the descriptiono - Implementation-specific Object needed for the conversion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||