jmri.managers.configurexml
Class DefaultMemoryManagerXml

java.lang.Object
  extended by jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
      extended by jmri.managers.configurexml.AbstractMemoryManagerConfigXML
          extended by 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

Constructor Summary
DefaultMemoryManagerXml()
           
 
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 jmri.managers.configurexml.AbstractMemoryManagerConfigXML
load, loadMemories, store
 
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

DefaultMemoryManagerXml

public DefaultMemoryManagerXml()
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads