jmri.jmrix.internal.configurexml
Class ConnectionConfigXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractConnectionConfigXml
jmri.jmrix.internal.configurexml.ConnectionConfigXml
- All Implemented Interfaces:
- XmlAdapter
public class ConnectionConfigXml
- extends AbstractConnectionConfigXml
Handle XML persistance of virtual layout connections
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.
|
Method Summary |
protected void |
getInstance()
|
protected void |
getInstance(Object object)
|
boolean |
load(org.jdom.Element e)
Port name carries the hostname for the network connection |
protected void |
register()
|
org.jdom.Element |
store(Object o)
Default implementation for storing the static contents of the serial port implementation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
adapter
protected SerialPortAdapter adapter
log
static org.slf4j.Logger log
ConnectionConfigXml
public ConnectionConfigXml()
getInstance
protected void getInstance()
- Specified by:
getInstance in class AbstractConnectionConfigXml
getInstance
protected void getInstance(Object object)
store
public org.jdom.Element store(Object o)
- Description copied from class:
AbstractConnectionConfigXml
- Default implementation for storing the static contents of the serial port implementation
- Specified by:
store in interface XmlAdapter- Specified by:
store in class AbstractConnectionConfigXml
- Parameters:
o - Object to store, of type PositionableLabel
- Returns:
- Element containing the complete info
load
public boolean load(org.jdom.Element e)
- Port name carries the hostname for the network connection
- Specified by:
load in interface XmlAdapter- Specified by:
load in class AbstractConnectionConfigXml
- Parameters:
e - Top level Element to unpack.
- Returns:
- true if successful
register
protected void register()
- Specified by:
register in class AbstractConnectionConfigXml
Copyright © 1997-2013 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: