Class BeanSwitchXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrit.display.switchboardEditor.configurexml.BeanSwitchXml
- All Implemented Interfaces:
XmlAdapter
Handle configuration for display.switchboard.BeanSwitch objects.
-
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
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, loadOrder, setExceptionHandler, store
-
Constructor Details
-
BeanSwitchXml
public BeanSwitchXml()
-
-
Method Details
-
store
Default implementation for storing the contents of a BeanSwitch. Used to display Switchboard switches in JMRI web server.- Parameters:
o- Object to store, of type BeanSwitch- Returns:
- Element containing the complete info
-
load
Load, starting with the BeanSwitch element, then all the value-icon pairs. Not currently used because BeanSwitches are auto-generated from SwitchBoard settings.- Specified by:
loadin interfaceXmlAdapter- Overrides:
loadin classAbstractXmlAdapter- Parameters:
element- Top level Element to unpack.o- an Editor as an Object
-