Package jmri.managers.configurexml
Class DefaultMemoryManagerXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
-
- jmri.managers.configurexml.AbstractMemoryManagerConfigXML
-
- jmri.managers.configurexml.DefaultMemoryManagerXml
-
- All Implemented Interfaces:
XmlAdapter
public class DefaultMemoryManagerXml extends AbstractMemoryManagerConfigXML
Persistency implementation for the default MemoryManager persistence.The state of memory objects is not persisted, just their existence.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.configurexml.AbstractXmlAdapter
AbstractXmlAdapter.EnumIO<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends java.lang.Enum<T>>
-
-
Constructor Summary
Constructors Constructor Description DefaultMemoryManagerXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
load(org.jdom2.Element sharedMemories, org.jdom2.Element perNodeMemories)
Create a MemoryManager object of the correct class, then register and fill it.void
setStoreElementClass(org.jdom2.Element memories)
Subclass provides implementation to create the correct top element, including the type information.-
Methods inherited from class jmri.managers.configurexml.AbstractMemoryManagerConfigXML
loadMemories, loadOrder, store
-
Methods inherited from class jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
checkedNamedBeanHandle, checkedNamedBeanName, checkedNamedBeanReference, checkNameNormalization, getAttributeBool, getAttributeString, getSystemName, getUserName, getUserName, loadComment, loadComment, loadCommon, loadInAdapter, loadProperties, storeComment, storeCommon, storeProperties, storeUserName
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, setExceptionHandler, store
-
-
-
-
Constructor Detail
-
DefaultMemoryManagerXml
public DefaultMemoryManagerXml()
-
-
Method Detail
-
setStoreElementClass
public void setStoreElementClass(org.jdom2.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 classAbstractMemoryManagerConfigXML
- Parameters:
memories
- The top-level element being created
-
load
public boolean load(org.jdom2.Element sharedMemories, org.jdom2.Element perNodeMemories)
Create a MemoryManager object of the correct class, then register and fill it.- Specified by:
load
in interfaceXmlAdapter
- Specified by:
load
in classAbstractMemoryManagerConfigXML
- Parameters:
sharedMemories
- Top level Element to unpack.perNodeMemories
- Per-node top level Element to unpack.- Returns:
- true if successful
-
-