|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
jmri.managers.configurexml.DefaultRouteManagerXml
public class DefaultRouteManagerXml
Provides the functionality for configuring RouteManagers
| Constructor Summary | |
|---|---|
DefaultRouteManagerXml()
|
|
| Method Summary | |
|---|---|
boolean |
load(Element routes)
Create a RouteManager 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. |
void |
loadRoutes(Element routes)
Utility method to load the individual Route objects. |
protected void |
replaceRouteManager()
Replace the current RouteManager, if there is one, with one newly created during a load operation. |
void |
setStoreElementClass(Element routes)
Subclass provides implementation to create the correct top element, including the type information. |
Element |
store(Object o)
Default implementation for storing the contents of a RouteManager |
| Methods inherited from class jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML |
|---|
getSystemName, getUserName, getUserName, loadCommon, storeCommon |
| 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 DefaultRouteManagerXml()
| Method Detail |
|---|
public Element store(Object o)
o - Object to store, of type RouteManager
public void setStoreElementClass(Element routes)
routes - The top-level element being created
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 conversionpublic boolean load(Element routes)
routes - Top level Element to unpack.
public void loadRoutes(Element routes)
routes - Element containing the Route elements to load.protected void replaceRouteManager()
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 | |||||||||