Class CanisbConnectionConfigXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.jmrix.configurexml.AbstractConnectionConfigXml
-
- jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
-
- jmri.jmrix.can.adapters.gridconnect.sproggen5.serialdriver.configurexml.CanisbConnectionConfigXml
-
- All Implemented Interfaces:
XmlAdapter
public class CanisbConnectionConfigXml 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.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
-
-
Constructor Summary
Constructors Constructor Description CanisbConnectionConfigXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
extendElement(org.jdom2.Element e)
Customizable method if you need to add anything more.protected void
getInstance()
protected void
getInstance(java.lang.Object object)
protected void
loadOptions(org.jdom2.Element shared, org.jdom2.Element perNode, PortAdapter adapter)
load optionsprotected void
register()
-
Methods inherited from class jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
dispose, load, load, store
-
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
findParmValue, loadCommon, register, saveOptions, setOutputInterval, store, storeCommon, unpackElement
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler
-
-
-
-
Constructor Detail
-
CanisbConnectionConfigXml
public CanisbConnectionConfigXml()
-
-
Method Detail
-
getInstance
protected void getInstance()
- Specified by:
getInstance
in classAbstractConnectionConfigXml
-
getInstance
protected void getInstance(java.lang.Object object)
- Overrides:
getInstance
in classAbstractSerialConnectionConfigXml
-
register
protected void register()
- Specified by:
register
in classAbstractConnectionConfigXml
-
loadOptions
protected void loadOptions(org.jdom2.Element shared, org.jdom2.Element perNode, PortAdapter adapter)
Description copied from class:AbstractConnectionConfigXml
load options- Overrides:
loadOptions
in classAbstractConnectionConfigXml
- Parameters:
shared
- the shared elementperNode
- the per node elementadapter
- the port adapter
-
extendElement
protected void extendElement(org.jdom2.Element e)
Description copied from class:AbstractSerialConnectionConfigXml
Customizable method if you need to add anything more.- Overrides:
extendElement
in classAbstractSerialConnectionConfigXml
- Parameters:
e
- Element being created, update as needed
-
-