jmri.managers.configurexml
Class DefaultMemoryManagerXml
java.lang.Object
jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
jmri.managers.configurexml.AbstractMemoryManagerConfigXML
jmri.managers.configurexml.DefaultMemoryManagerXml
- All Implemented Interfaces:
- XmlAdapter
- Direct Known Subclasses:
- DefaultMemoryManagerXml
public class DefaultMemoryManagerXml
- extends AbstractMemoryManagerConfigXML
Persistency implementation for the default MemoryManager persistance.
The state of memory objects is not persisted, just their existance.
- Author:
- Bob Jacobsen Copyright: Copyright (c) 2002
|
Method Summary |
boolean |
load(Element memories)
Create a MemoryManager object of the correct class, then
register and fill it. |
void |
setStoreElementClass(Element memories)
Subclass provides implementation to create the correct top
element, including the type information. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMemoryManagerXml
public DefaultMemoryManagerXml()
setStoreElementClass
public void setStoreElementClass(Element memories)
- Subclass provides implementation to create the correct top
element, including the type information.
Default implementation is to use the local class here.
- Specified by:
setStoreElementClass in class AbstractMemoryManagerConfigXML
- Parameters:
memories - The top-level element being created
load
public boolean load(Element memories)
- Create a MemoryManager object of the correct class, then
register and fill it.
- Specified by:
load in interface XmlAdapter- Specified by:
load in class AbstractMemoryManagerConfigXML
- Parameters:
memories - Top level Element to unpack.
- Returns:
- true if successful
Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: