Package jmri.jmrix.configurexml
Class AbstractSerialConnectionConfigXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.jmrix.configurexml.AbstractConnectionConfigXml
-
- jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
-
- All Implemented Interfaces:
XmlAdapter
- Direct Known Subclasses:
AbstractDCCppSerialConnectionConfigXml
,AbstractXNetSerialConnectionConfigXml
,CanisbConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,ConnectionConfigXml
,PiSprog3ConnectionConfigXml
,PiSprog3PlusConnectionConfigXml
,PiSprog3v2ConnectionConfigXml
,Sprog3PlusConnectionConfigXml
public abstract class AbstractSerialConnectionConfigXml extends AbstractConnectionConfigXml
Abstract base (and partial implementation) for classes persisting the status of serial port adapters.
-
-
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 Modifier and Type Field Description protected SerialPortAdapter
adapter
-
Constructor Summary
Constructors Constructor Description AbstractSerialConnectionConfigXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispose()
protected void
extendElement(org.jdom2.Element e)
Customizable method if you need to add anything more.protected void
getInstance(java.lang.Object object)
void
load(org.jdom2.Element element, java.lang.Object o)
Update static data from XML file.boolean
load(org.jdom2.Element shared, org.jdom2.Element perNode)
Create a set of configured objects from their XML description.org.jdom2.Element
store(java.lang.Object object)
Default implementation for storing the static contents of the serial port implementation.-
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
findParmValue, getInstance, loadCommon, loadOptions, register, register, saveOptions, setOutputInterval, store, storeCommon, unpackElement
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler
-
-
-
-
Field Detail
-
adapter
protected SerialPortAdapter adapter
-
-
Constructor Detail
-
AbstractSerialConnectionConfigXml
public AbstractSerialConnectionConfigXml()
-
-
Method Detail
-
getInstance
protected void getInstance(java.lang.Object object)
-
store
public org.jdom2.Element store(java.lang.Object object)
Default implementation for storing the static contents of the serial port implementation.- Parameters:
object
- Object to store, of type AbstractSerialConnectionConfig- Returns:
- Element containing the complete info
-
extendElement
protected void extendElement(org.jdom2.Element e)
Customizable method if you need to add anything more.- Overrides:
extendElement
in classAbstractConnectionConfigXml
- Parameters:
e
- Element being created, update as needed
-
load
public boolean load(org.jdom2.Element shared, org.jdom2.Element perNode)
Description copied from class:AbstractXmlAdapter
Create a set of configured objects from their XML description.- Specified by:
load
in interfaceXmlAdapter
- Overrides:
load
in classAbstractXmlAdapter
- Parameters:
shared
- Top-level XML element containing the common, multi-node elements of the descriptionperNode
- Top-level XML element containing the private, single-node elements of the description- Returns:
- true if successful
-
load
public void load(org.jdom2.Element element, java.lang.Object o)
Update static data from XML file.- Specified by:
load
in interfaceXmlAdapter
- Overrides:
load
in classAbstractXmlAdapter
- Parameters:
element
- Top level Element to unpack.o
- Implementation-specific Object needed for the conversion
-
dispose
protected void dispose()
- Specified by:
dispose
in classAbstractConnectionConfigXml
-
-