Class RaspberryPiSimulatorConnectionConfigXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.jmrix.configurexml.AbstractConnectionConfigXml
-
- jmri.jmrix.pi.simulator.configurexml.RaspberryPiSimulatorConnectionConfigXml
-
- All Implemented Interfaces:
XmlAdapter
public class RaspberryPiSimulatorConnectionConfigXml extends AbstractConnectionConfigXml
Handle XML persistence of layout connections by persisting the RaspberryPiAdapter. Note this is named as the XML version of a RaspberryPiSimulatorConnectionConfig 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 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>>
-
-
Constructor Summary
Constructors Constructor Description RaspberryPiSimulatorConnectionConfigXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispose()
protected void
getInstance()
protected void
getInstance(java.lang.Object object)
boolean
load(org.jdom2.Element shared, org.jdom2.Element perNode)
Create a set of configured objects from their XML description.protected void
register()
org.jdom2.Element
store(java.lang.Object o)
Default implementation for storing the static contents of the serial port implementation-
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
extendElement, findParmValue, loadCommon, loadOptions, register, saveOptions, setOutputInterval, store, storeCommon, unpackElement
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, loadOrder, setExceptionHandler
-
-
-
-
Constructor Detail
-
RaspberryPiSimulatorConnectionConfigXml
public RaspberryPiSimulatorConnectionConfigXml()
-
-
Method Detail
-
getInstance
protected void getInstance()
- Specified by:
getInstance
in classAbstractConnectionConfigXml
-
getInstance
protected void getInstance(java.lang.Object object)
-
register
protected void register()
- Specified by:
register
in classAbstractConnectionConfigXml
-
store
public org.jdom2.Element store(java.lang.Object o)
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
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
-
dispose
protected void dispose()
- Specified by:
dispose
in classAbstractConnectionConfigXml
-
-