|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractMemoryManagerConfigXML
public abstract class AbstractMemoryManagerConfigXML
Provides the abstract base and store functionality for configuring MemoryManagers, working with AbstractMemoryManagers.
Typically, a subclass will just implement the load(Element memories) class, relying on implementation here to load the individual Memory objects. Note that these are stored explicitly, so the resolution mechanism doesn't need to see *Xml classes for each specific Memory or AbstractMemory subclass at store time.
| Constructor Summary | |
|---|---|
AbstractMemoryManagerConfigXML()
|
|
| Method Summary | |
|---|---|
abstract void |
load(org.jdom.Element memories)
Create a MemoryManager object of the correct class, then register and fill it. |
void |
load(org.jdom.Element element,
Object o)
Create a set of configured objects from their XML description, using an auxiliary object. |
void |
loadMemories(org.jdom.Element memories)
Utility method to load the individual Memory objects. |
abstract void |
setStoreElementClass(org.jdom.Element memories)
Subclass provides implementation to create the correct top element, including the type information. |
org.jdom.Element |
store(Object o)
Default implementation for storing the contents of a MemoryManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMemoryManagerConfigXML()
| Method Detail |
|---|
public org.jdom.Element store(Object o)
store in interface XmlAdaptero - Object to store, of type MemoryManager
public abstract void setStoreElementClass(org.jdom.Element memories)
memories - The top-level element being created
public void load(org.jdom.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.
load in interface XmlAdapterelement - Top-level XML element containing the descriptiono - Implementation-specific Object needed for the conversionpublic abstract void load(org.jdom.Element memories)
load in interface XmlAdaptermemories - Top level Element to unpack.public void loadMemories(org.jdom.Element memories)
memories - Element containing the Memory elements to load.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||