jmri.jmrix.loconet.locormi.configurexml
Class ConnectionConfigXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
jmri.jmrix.loconet.locormi.configurexml.ConnectionConfigXml
- All Implemented Interfaces:
- XmlAdapter
public class ConnectionConfigXml
- extends AbstractSerialConnectionConfigXml
Handle XML persistance of layout connections by persistening
the RMI objects (and connections). Note this is
named as the XML version of a ConnectionConfig object,
but it's actually persisting the RMI info.
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionConfigXml
public ConnectionConfigXml()
getInstance
protected void getInstance()
- Specified by:
getInstance in class AbstractSerialConnectionConfigXml
store
public Element store(Object o)
- Description copied from class:
AbstractSerialConnectionConfigXml
- Default implementation for storing the static contents of the serial port implementation
- Specified by:
store in interface XmlAdapter- Overrides:
store in class AbstractSerialConnectionConfigXml
- Parameters:
o - Object to store, of type PositionableLabel
- Returns:
- Element containing the complete info
load
public boolean load(Element e)
- Port name carries the hostname for the RMI connection
- Specified by:
load in interface XmlAdapter- Overrides:
load in class AbstractSerialConnectionConfigXml
- Parameters:
e - Top level Element to unpack.
- Returns:
- true if successful
register
protected void register()
- Specified by:
register in class AbstractSerialConnectionConfigXml
register
protected void register(String host,
String manufacturer)
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: