|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractLightManagerConfigXML
public abstract class AbstractLightManagerConfigXML
Provides the abstract base and store functionality for configuring LightManagers, working with AbstractLightManagers.
Typically, a subclass will just implement the load(Element sensors) class, relying on implementation here to load the individual lights. Note that these are stored explicitly, so the resolution mechanism doesn't need to see *Xml classes for each specific Light or AbstractLight subclass at store time.
Based on AbstractSensorManagerConfigXML.java
| Constructor Summary | |
|---|---|
AbstractLightManagerConfigXML()
|
|
| Method Summary | |
|---|---|
abstract void |
load(org.jdom.Element lights)
Create a LightManager object of the correct class, then register and fill it. |
void |
loadLights(org.jdom.Element lights)
Utility method to load the individual Light objects. |
abstract void |
setStoreElementClass(org.jdom.Element lights)
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 LightManager |
| 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 |
| Constructor Detail |
|---|
public AbstractLightManagerConfigXML()
| Method Detail |
|---|
public org.jdom.Element store(Object o)
store in interface XmlAdaptero - Object to store, of type LightManager
public abstract void setStoreElementClass(org.jdom.Element lights)
lights - The top-level element being createdpublic abstract void load(org.jdom.Element lights)
load in interface XmlAdapterlights - Top level Element to unpack.public void loadLights(org.jdom.Element lights)
lights - Element containing the Light elements to load.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||