|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
jmri.configurexml.SectionManagerXml
public class SectionManagerXml
Provides the functionality for persistence of a SectionManager
| Constructor Summary | |
|---|---|
SectionManagerXml()
|
|
| Method Summary | |
|---|---|
boolean |
load(Element sections)
Create a SectionManager 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. |
void |
loadSections(Element sections)
Utility method to load the individual Section objects. |
void |
setStoreElementClass(Element sections)
Subclass provides implementation to create the correct top element, including the type information. |
Element |
store(Object o)
Implementation for storing the contents of a SectionManager |
| Methods inherited from class jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML |
|---|
loadCommon, storeCommon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SectionManagerXml()
| Method Detail |
|---|
public Element store(Object o)
o - Object to store, of type SectionManager
public void setStoreElementClass(Element sections)
sections - 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 sections)
sections - Top level Element to unpack.
public void loadSections(Element sections)
sections - Element containing the Section elements to load.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||