|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
jmri.managers.configurexml.AbstractMemoryManagerConfigXML
jmri.configurexml.BlockManagerXml
public class BlockManagerXml
Persistency implementation for BlockManager persistance.
The Block objects are not yet read in, pending a reliable write out!
Every block is written twice. First, the list of blocks is written without contents, so that we're sure they're all created on read-back. Then, they're written out again with contents, including the block references in the path elements.
| Constructor Summary | |
|---|---|
BlockManagerXml()
|
|
| Method Summary | |
|---|---|
boolean |
load(Element blocks)
Load Blocks into the existing BlockManager. |
void |
loadBeanSetting(Path path,
Element element)
Load BeanSetting into an existing Path. |
void |
loadBlock(Element element)
Utility method to load the individual Block objects. |
void |
loadPath(Block block,
Element element)
Load path into an existing Block. |
void |
setStoreElementClass(Element memories)
Subclass provides implementation to create the correct top element, including the type information. |
Element |
store(Object o)
Store the contents of a BlockManager. |
| Methods inherited from class jmri.managers.configurexml.AbstractMemoryManagerConfigXML |
|---|
load, loadMemories |
| 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 |
|---|
public BlockManagerXml()
| Method Detail |
|---|
public void setStoreElementClass(Element memories)
setStoreElementClass in class AbstractMemoryManagerConfigXMLmemories - The top-level element being createdpublic Element store(Object o)
store in interface XmlAdapterstore in class AbstractMemoryManagerConfigXMLo - Object to store, of type BlockManager
public boolean load(Element blocks)
The BlockManager in the InstanceManager is created automatically.
load in interface XmlAdapterload in class AbstractMemoryManagerConfigXMLblocks - Element containing the block elements to load.
public void loadBlock(Element element)
element - Element holding one block
public void loadPath(Block block,
Element element)
block - Block to receive pathelement - Element containing path information
public void loadBeanSetting(Path path,
Element element)
path - Path to receive BeanSettingelement - Element containing beansetting information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||