|
||||||||||
| 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.AbstractReporterManagerConfigXML
public abstract class AbstractReporterManagerConfigXML
Provides the abstract base and store functionality for configuring ReporterManagers, working with AbstractReporterManagers.
Typically, a subclass will just implement the load(Element Reporters) class, relying on implementation here to load the individual Reporters. Note that these are stored explicitly, so the resolution mechanism doesn't need to see *Xml classes for each specific Reporter or AbstractReporter subclass at store time.
| Constructor Summary | |
|---|---|
AbstractReporterManagerConfigXML()
|
|
| Method Summary | |
|---|---|
abstract boolean |
load(Element reporters)
Create a ReporterManager object of the correct class, then register and fill it. |
boolean |
loadReporters(Element reporters)
Utility method to load the individual Reporter objects. |
abstract void |
setStoreElementClass(Element reporters)
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 ReporterManager |
| Methods inherited from class jmri.configurexml.AbstractXmlAdapter |
|---|
creationErrorEncountered, setConfigXmlManager |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.configurexml.XmlAdapter |
|---|
load |
| Constructor Detail |
|---|
public AbstractReporterManagerConfigXML()
| Method Detail |
|---|
public Element store(Object o)
o - Object to store, of type ReporterManager
public abstract void setStoreElementClass(Element reporters)
reporters - The top-level element being createdpublic abstract boolean load(Element reporters)
reporters - Top level Element to unpack.
public boolean loadReporters(Element reporters)
reporters - Element containing the Reporter elements to load.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||