jmri.jmrix.lenz.liusbserver.configurexml
Class ConnectionConfigXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractNetworkConnectionConfigXml
jmri.jmrix.lenz.liusbserver.configurexml.ConnectionConfigXml
- All Implemented Interfaces:
- XmlAdapter
public class ConnectionConfigXml
- extends AbstractNetworkConnectionConfigXml
Handle XML persistance of layout connections by persistening
the LIUSB Server (and connections). Note this is
named as the XML version of a ConnectionConfig object,
but it's actually persisting the LIUSB Server.
NOTE: The LIUSB Server currently has no options, so this class does
not store any.
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:
- Paul Bender Copyright (C) 2009
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionConfigXml
public ConnectionConfigXml()
store
public Element store(Object o)
- An LIUSBServer connection needs no extra information, so
we reimplement the superclass method to just write the
necessary parts.
- Specified by:
store in interface XmlAdapter- Overrides:
store in class AbstractNetworkConnectionConfigXml
- Parameters:
o -
- Returns:
- Formatted element containing no attributes except the class name
load
public boolean load(Element e)
throws Exception
- Update static data from XML file
- Specified by:
load in interface XmlAdapter- Overrides:
load in class AbstractNetworkConnectionConfigXml
- Parameters:
e - Top level Element to unpack.
- Returns:
- true if successful
- Throws:
Exception - when a error prevents creating the objects as
as required by the input XML.
getInstance
protected void getInstance()
- Specified by:
getInstance in class AbstractNetworkConnectionConfigXml
getInstance
protected void getInstance(Object object)
- Overrides:
getInstance in class AbstractNetworkConnectionConfigXml
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: