|
||||||||||
| 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.AbstractTurnoutManagerConfigXML
public abstract class AbstractTurnoutManagerConfigXML
Provides the abstract base and store functionality for configuring TurnoutManagers, working with AbstractTurnoutManagers.
Typically, a subclass will just implement the load(Element turnouts) class, relying on implementation here to load the individual turnouts. Note that these are stored explicitly, so the resolution mechanism doesn't need to see *Xml classes for each specific Turnout or AbstractTurnout subclass at store time.
| Field Summary | |
|---|---|
(package private) static org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
AbstractTurnoutManagerConfigXML()
|
|
| Method Summary | |
|---|---|
abstract boolean |
load(org.jdom.Element turnouts)
Create a TurnoutManager object of the correct class, then register and fill it. |
int |
loadOrder()
Used for determining which order to load items from XML files in. |
boolean |
loadTurnouts(org.jdom.Element turnouts)
Utility method to load the individual Turnout objects. |
abstract void |
setStoreElementClass(org.jdom.Element turnouts)
Subclass provides implementation to create the correct top element, including the type information. |
org.jdom.Element |
store(Object o)
Default implementation for storing the contents of a TurnoutManager and associated TurnoutOperation's |
| Methods inherited from class jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML |
|---|
getAttributeBool, getAttributeString, getSystemName, getUserName, getUserName, loadComment, loadComment, loadCommon, loadProperties, storeComment, storeCommon, storeProperties, storeUserName |
| 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 |
| Methods inherited from interface jmri.configurexml.XmlAdapter |
|---|
load |
| Field Detail |
|---|
static org.slf4j.Logger log
| Constructor Detail |
|---|
public AbstractTurnoutManagerConfigXML()
| Method Detail |
|---|
public org.jdom.Element store(Object o)
o - Object to store, of type TurnoutManager
public abstract void setStoreElementClass(org.jdom.Element turnouts)
turnouts - The top-level element being createdpublic abstract boolean load(org.jdom.Element turnouts)
turnouts - Top level Element to unpack.
public boolean loadTurnouts(org.jdom.Element turnouts)
turnouts - Element containing the Turnout elements to load.
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 | |||||||||