Class ConnectionConfigXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractConnectionConfigXml
jmri.jmrix.configurexml.AbstractNetworkConnectionConfigXml
jmri.jmrix.ecos.networkdriver.configurexml.ConnectionConfigXml
- All Implemented Interfaces:
XmlAdapter
Handle XML persistance of layout connections by persistening the
NetworkDriverAdapter (and connections).
Note this is named as the XML version of a ConnectionConfig object, but it's actually persisting the NetworkDriverAdapter.
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.AbstractNetworkConnectionConfigXml
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) Customizable method if you need to add anything more.protected voidprotected voidgetInstance(Object object) 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.AbstractNetworkConnectionConfigXml
dispose, load, load, storeMethods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
findParmValue, loadCommon, loadOptions, register, saveOptions, setOutputInterval, store, storeCommonMethods 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 classAbstractNetworkConnectionConfigXml
-
extendElement
Description copied from class:AbstractNetworkConnectionConfigXmlCustomizable method if you need to add anything more.- Overrides:
extendElementin classAbstractNetworkConnectionConfigXml- Parameters:
e- Element being created, update as needed
-
unpackElement
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
-
register
- Specified by:
registerin classAbstractConnectionConfigXml
-