|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.jmrit.logix.configurexml.WarrantManagerXml
public class WarrantManagerXml
Provides the abstract base and store functionality for configuring the CatalogTreeManager.
Typically, a subclass will just implement the load(Element catalogTree) class, relying on implementation here to load the individual CatalogTree objects.
| Constructor Summary | |
|---|---|
WarrantManagerXml()
|
|
| Method Summary | |
|---|---|
boolean |
load(Element warrants)
Create a Warrant object of the correct class, then register and fill it. |
void |
load(Element element,
Object o)
Create a set of configured objects from their XML description, using an auxiliary object. |
int |
loadOrder()
Used for determining which order to load items from XML files in. |
Element |
store(Object o)
Store the contents of a WarrantManager. |
| Methods inherited from class jmri.configurexml.AbstractXmlAdapter |
|---|
creationErrorEncountered, getConfigXmlManager, loadDeferred, setConfigXmlManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WarrantManagerXml()
| Method Detail |
|---|
public Element store(Object o)
o - Object to store, of type warrantManager
public boolean load(Element warrants)
warrants - Top level Element to unpack.
public void load(Element element,
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.
element - 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 int loadOrder()
AbstractXmlAdapter
loadOrder in interface XmlAdapterloadOrder in class AbstractXmlAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||