jmri.jmrix.ecos.networkdriver.configurexml
Class ConnectionConfigXml

java.lang.Object
  extended by jmri.configurexml.AbstractXmlAdapter
      extended by jmri.jmrix.configurexml.AbstractNetworkConnectionConfigXml
          extended by jmri.jmrix.ecos.networkdriver.configurexml.ConnectionConfigXml
All Implemented Interfaces:
XmlAdapter

public class ConnectionConfigXml
extends AbstractNetworkConnectionConfigXml

Handle XML persistance of layout connections by persistening the NetworkDriverAdapter (and connections).

Note this is named as the XML version of a ConnectionConfig object, but it's actually persisting the NetworkDriverAdapter.

This class is invoked from jmrix.JmrixConfigPaneXml on write, as that class is the one actually registered. Reads are brought here directly via the class attribute in the XML.

Author:
Bob Jacobsen Copyright: Copyright (c) 2003, 208

Field Summary
 
Fields inherited from class jmri.jmrix.configurexml.AbstractNetworkConnectionConfigXml
adapter
 
Constructor Summary
ConnectionConfigXml()
           
 
Method Summary
protected  void extendElement(Element e)
          Customizable method if you need to add anything more
protected  void getInstance()
           
protected  void getInstance(Object object)
           
protected  void register()
           
protected  void unpackElement(Element e)
          Customizable method if you need to add anything more
 
Methods inherited from class jmri.jmrix.configurexml.AbstractNetworkConnectionConfigXml
load, load, store
 
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
creationErrorEncountered, getConfigXmlManager, loadDeferred, loadOrder, setConfigXmlManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionConfigXml

public ConnectionConfigXml()
Method Detail

getInstance

protected void getInstance()
Specified by:
getInstance in class AbstractNetworkConnectionConfigXml

getInstance

protected void getInstance(Object object)
Overrides:
getInstance in class AbstractNetworkConnectionConfigXml

extendElement

protected void extendElement(Element e)
Description copied from class: AbstractNetworkConnectionConfigXml
Customizable method if you need to add anything more

Overrides:
extendElement in class AbstractNetworkConnectionConfigXml
Parameters:
e - Element being created, update as needed

unpackElement

protected void unpackElement(Element e)
Description copied from class: AbstractNetworkConnectionConfigXml
Customizable method if you need to add anything more

Overrides:
unpackElement in class AbstractNetworkConnectionConfigXml
Parameters:
e - Element being created, update as needed

register

protected void register()
Specified by:
register in class AbstractNetworkConnectionConfigXml


Copyright © 1997 - 2011 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