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,ConnectionConfigXml,PiSprog3ConnectionConfigXml,PiSprog3PlusConnectionConfigXml,PiSprog3v2ConnectionConfigXml,Sprog3PlusConnectionConfigXml
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
FieldsFields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispose()protected voidextendElement(org.jdom2.Element e) Customizable method if you need to add anything more.protected voidgetInstance(Object object) voidUpdate static data from XML file.booleanload(org.jdom2.Element shared, org.jdom2.Element perNode) Create a set of configured objects from their XML description.org.jdom2.ElementDefault 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, unpackElementMethods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler
-
Field Details
-
adapter
-
-
Constructor Details
-
AbstractSerialConnectionConfigXml
public AbstractSerialConnectionConfigXml()
-
-
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:
extendElementin classAbstractConnectionConfigXml- Parameters:
e- Element being created, update as needed
-
load
Description copied from class:AbstractXmlAdapterCreate a set of configured objects from their XML description.- Specified by:
loadin interfaceXmlAdapter- Overrides:
loadin 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:
loadin interfaceXmlAdapter- Overrides:
loadin classAbstractXmlAdapter- Parameters:
element- Top level Element to unpack.o- Implementation-specific Object needed for the conversion
-
dispose
- Specified by:
disposein classAbstractConnectionConfigXml
-