Class CommonTurnoutOperationXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.configurexml.turnoutoperations.TurnoutOperationXml
jmri.configurexml.turnoutoperations.CommonTurnoutOperationXml
- All Implemented Interfaces:
XmlAdapter
- Direct Known Subclasses:
NoFeedbackTurnoutOperationXml,RawTurnoutOperationXml,SensorTurnoutOperationXml
Concrete subclass to save/restore NoFeedbackTurnoutOperation object to/from
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 TypeMethodDescriptionloadOne(org.jdom2.Element e, Constructor<?> constr, int di, int dmt) called for a newly-constructed object to load it from an XML elementorg.jdom2.Elementcommon part of store - create the element and store the name and the classMethods inherited from class jmri.configurexml.turnoutoperations.TurnoutOperationXml
getAdapter, load, loadOne, loadOperationMethods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, loadOrder, setExceptionHandler, store
-
Constructor Details
-
CommonTurnoutOperationXml
public CommonTurnoutOperationXml()
-
-
Method Details
-
store
Description copied from class:TurnoutOperationXmlcommon part of store - create the element and store the name and the class- Specified by:
storein interfaceXmlAdapter- Overrides:
storein classTurnoutOperationXml- Parameters:
op- TurnoutOperation object- Returns:
- partially filled element
-
loadOne
called for a newly-constructed object to load it from an XML element- Parameters:
e- the XML element of type "turnoutOperation"constr- constructor of subclass of TurnoutOperation to createdi- default intervaldmt- default max tries- Returns:
- a TurnoutOperation or null if unable to load from e
-