Class ConnectionConfigXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.jmrix.configurexml.AbstractConnectionConfigXml
-
- jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
-
- jmri.jmrix.rps.serial.configurexml.ConnectionConfigXml
-
- All Implemented Interfaces:
XmlAdapter
public class ConnectionConfigXml extends AbstractSerialConnectionConfigXml
Handle XML persistance of layout connections by persisting the SeriaAdapter (and connections). Note this is named as the XML version of a ConnectionConfig object, but it's actually persisting the SerialAdapter.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 java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends java.lang.Enum<T>>
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
adapter
-
Fields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES
-
-
Constructor Summary
Constructors Constructor Description ConnectionConfigXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidextendElement(org.jdom2.Element e)Write out the SerialNode objects tooprotected voidgetInstance()protected voidgetInstance(java.lang.Object object)protected org.jdom2.ElementmakeParameter(java.lang.String name, java.lang.String value)protected voidregister()protected voidunpackElement(org.jdom2.Element shared, org.jdom2.Element perNode)Method to unpack additional XML structures after connection creation, but before connection is usable.-
Methods inherited from class jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
dispose, load, load, store
-
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
findParmValue, loadCommon, loadOptions, register, saveOptions, setOutputInterval, store, storeCommon
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler
-
-
-
-
Constructor Detail
-
ConnectionConfigXml
public ConnectionConfigXml()
-
-
Method Detail
-
extendElement
protected void extendElement(org.jdom2.Element e)
Write out the SerialNode objects too- Overrides:
extendElementin classAbstractSerialConnectionConfigXml- Parameters:
e- Element being extended
-
makeParameter
protected org.jdom2.Element makeParameter(java.lang.String name, java.lang.String value)
-
getInstance
protected void getInstance()
- Specified by:
getInstancein classAbstractConnectionConfigXml
-
getInstance
protected void getInstance(java.lang.Object object)
- Overrides:
getInstancein classAbstractSerialConnectionConfigXml
-
register
protected void register()
- Specified by:
registerin classAbstractConnectionConfigXml
-
unpackElement
protected void unpackElement(org.jdom2.Element shared, org.jdom2.Element perNode)
Description copied from class:AbstractConnectionConfigXmlMethod to unpack additional XML structures after connection creation, but before connection is usable.- Overrides:
unpackElementin classAbstractConnectionConfigXml- Parameters:
shared- connection information common to all nodesperNode- connection information unique to this node
-
-