Class ConnectionConfigXml
- java.lang.Object
- 
- jmri.configurexml.AbstractXmlAdapter
- 
- jmri.jmrix.configurexml.AbstractConnectionConfigXml
- 
- jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
- 
- jmri.jmrix.can.adapters.gridconnect.pilcc.serialdriver.configurexml.ConnectionConfigXml
 
 
 
 
- 
- All Implemented Interfaces:
- XmlAdapter
 
 public class ConnectionConfigXml extends AbstractSerialConnectionConfigXml 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.AbstractXmlAdapterAbstractXmlAdapter.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.AbstractSerialConnectionConfigXmladapter
 - 
Fields inherited from class jmri.configurexml.AbstractXmlAdapterSTR_FALSE, STR_NO, STR_TRUE, STR_YES
 
- 
 - 
Constructor SummaryConstructors Constructor Description ConnectionConfigXml()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidextendElement(org.jdom2.Element e)Customizable method if you need to add anything more.protected voidgetInstance()protected voidgetInstance(java.lang.Object object)protected voidloadOptions(org.jdom2.Element shared, org.jdom2.Element perNode, PortAdapter adapter)load optionsprotected voidregister()- 
Methods inherited from class jmri.jmrix.configurexml.AbstractSerialConnectionConfigXmldispose, load, load, store
 - 
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXmlfindParmValue, loadCommon, register, saveOptions, setOutputInterval, store, storeCommon, unpackElement
 - 
Methods inherited from class jmri.configurexml.AbstractXmlAdaptergetAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler
 
- 
 
- 
- 
- 
Constructor Detail- 
ConnectionConfigXmlpublic ConnectionConfigXml() 
 
- 
 - 
Method Detail- 
getInstanceprotected void getInstance() - Specified by:
- getInstancein class- AbstractConnectionConfigXml
 
 - 
getInstanceprotected void getInstance(java.lang.Object object) - Overrides:
- getInstancein class- AbstractSerialConnectionConfigXml
 
 - 
registerprotected void register() - Specified by:
- registerin class- AbstractConnectionConfigXml
 
 - 
loadOptionsprotected void loadOptions(org.jdom2.Element shared, org.jdom2.Element perNode, PortAdapter adapter) Description copied from class:AbstractConnectionConfigXmlload options- Overrides:
- loadOptionsin class- AbstractConnectionConfigXml
- Parameters:
- shared- the shared element
- perNode- the per node element
- adapter- the port adapter
 
 - 
extendElementprotected void extendElement(org.jdom2.Element e) Description copied from class:AbstractSerialConnectionConfigXmlCustomizable method if you need to add anything more.- Overrides:
- extendElementin class- AbstractSerialConnectionConfigXml
- Parameters:
- e- Element being created, update as needed
 
 
- 
 
-