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
,CanSprogConnectionConfigXml
,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
,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 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 Modifier and Type Field Description protected SerialPortAdapter
adapter
-
Constructor Summary
Constructors Constructor Description AbstractSerialConnectionConfigXml()
-
Method Summary
Modifier and Type Method Description protected void
extendElement(Element e)
Customizable method if you need to add anything more.protected void
getInstance(Object object)
void
load(Element element, Object o)
Update static data from XML file.boolean
load(Element shared, Element perNode)
Create a set of configured objects from their XML description.Element
store(Object object)
Default implementation for storing the static contents of the serial port implementation.Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
checkAndWarnPrefix, 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 Details
-
Constructor Details
-
Method Details
-
getInstance
-
store
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
Customizable method if you need to add anything more.- Overrides:
extendElement
in classAbstractConnectionConfigXml
- Parameters:
e
- Element being created, update as needed
-
load
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
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
-