Class ConnectionConfigXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractConnectionConfigXml
jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
jmri.jmrix.bidib.serialdriver.configurexml.ConnectionConfigXml
- All Implemented Interfaces:
XmlAdapter
Handle XML persistance of layout connections by persistening the
SerialDriverAdapter (and connections). Note this is named as the XML version
of a ConnectionConfig object, but it's actually persisting the
SerialDriverAdapter.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.configurexml.AbstractXmlAdapter
AbstractXmlAdapter.EnumIO<T extends Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends Enum<T>> -
Field Summary
Fields inherited from class jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
adapterFields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextendElement(org.jdom2.Element e) Write out the SerialNode objects tooprotected voidprotected voidgetInstance(Object object) protected voidloadCommon(org.jdom2.Element shared, org.jdom2.Element perNode, PortAdapter adapter) Load common attributes and elements.protected voidregister()protected voidunpackElement1(org.jdom2.Element shared, org.jdom2.Element perNode) Same as unpackElement() in super class, but that one is called from load() too late.Methods inherited from class jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
dispose, load, load, storeMethods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
findParmValue, loadOptions, register, saveOptions, setOutputInterval, store, storeCommon, unpackElementMethods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler
-
Constructor Details
-
ConnectionConfigXml
public ConnectionConfigXml()
-
-
Method Details
-
getInstance
- Specified by:
getInstancein classAbstractConnectionConfigXml
-
getInstance
- Overrides:
getInstancein classAbstractSerialConnectionConfigXml
-
register
- Specified by:
registerin classAbstractConnectionConfigXml
-
loadCommon
Description copied from class:AbstractConnectionConfigXmlLoad common attributes and elements.- Overrides:
loadCommonin classAbstractConnectionConfigXml- Parameters:
shared- the shared elementperNode- the per node elementadapter- the port adapter
-
extendElement
Write out the SerialNode objects too- Overrides:
extendElementin classAbstractSerialConnectionConfigXml- Parameters:
e- Element being extended
-
unpackElement1
Same as unpackElement() in super class, but that one is called from load() too late. Get the additional parameters from XML.- Parameters:
shared- selected ElementperNode- from super class- See Also:
-