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
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 Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends Enum<T>> -
Field Summary
Fields inherited from class jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
STR_CLASS, STR_COMMENT, STR_KEY, STR_PROPERTIES, STR_PROPERTY, STR_SYSTEM_NAME, STR_USER_NAME, STR_VALUEFields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanload(org.jdom2.Element sharedMemories, org.jdom2.Element perNodeMemories) Create a MemoryManager object of the correct class, then register and fill it.voidsetStoreElementClass(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, storeMethods inherited from class jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
checkedNamedBeanHandle, checkedNamedBeanName, checkedNamedBeanReference, checkNameNormalization, getAttributeBool, getAttributeString, getSystemName, getUserName, getUserName, loadComment, loadComment, loadCommon, loadInAdapter, loadProperties, storeComment, storeCommon, storeProperties, storeUserNameMethods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, setExceptionHandler, store
-
Constructor Details
-
DefaultMemoryManagerXml
public DefaultMemoryManagerXml()
-
-
Method Details
-
setStoreElementClass
Subclass provides implementation to create the correct top element, including the type information. Default implementation is to use the local class here.- Specified by:
setStoreElementClassin classAbstractMemoryManagerConfigXML- Parameters:
memories- The top-level element being created
-
load
Create a MemoryManager object of the correct class, then register and fill it.- Specified by:
loadin interfaceXmlAdapter- Specified by:
loadin classAbstractMemoryManagerConfigXML- Parameters:
sharedMemories- Top level Element to unpack.perNodeMemories- Per-node top level Element to unpack.- Returns:
- true if successful
-