Package jmri.jmrix.pi.configurexml
Class RaspberryPiConnectionConfigXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractConnectionConfigXml
jmri.jmrix.pi.configurexml.RaspberryPiConnectionConfigXml
- All Implemented Interfaces:
XmlAdapter
Handle XML persistence of layout connections by persisting the
RaspberryPiAdapter. Note this is named as the XML version of a
RaspberryPiConnectionConfig object, but it's actually persisting the
RaspberryPiAdapter.
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 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 inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispose()protected voidprotected voidgetInstance(Object object) booleanload(org.jdom2.Element shared, org.jdom2.Element perNode) Create a set of configured objects from their XML description.protected voidregister()org.jdom2.ElementDefault implementation for storing the static contents of the serial port implementationMethods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
extendElement, findParmValue, loadCommon, loadOptions, register, saveOptions, setOutputInterval, store, storeCommon, unpackElementMethods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, loadOrder, setExceptionHandler
-
Constructor Details
-
RaspberryPiConnectionConfigXml
public RaspberryPiConnectionConfigXml()
-
-
Method Details
-
getInstance
- Specified by:
getInstancein classAbstractConnectionConfigXml
-
getInstance
-
register
- Specified by:
registerin classAbstractConnectionConfigXml
-
store
Default implementation for storing the static contents of the serial port implementation- Parameters:
o- Object to store, of type PositionableLabel- Returns:
- Element containing the complete info
-
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
-
dispose
- Specified by:
disposein classAbstractConnectionConfigXml
-