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
public abstract class CommonTurnoutOperationXml extends TurnoutOperationXml
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 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 CommonTurnoutOperationXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TurnoutOperation
loadOne(org.jdom2.Element e, java.lang.reflect.Constructor<?> constr, int di, int dmt)
called for a newly-constructed object to load it from an XML elementorg.jdom2.Element
store(java.lang.Object op)
common part of store - create the element and store the name and the class-
Methods inherited from class jmri.configurexml.turnoutoperations.TurnoutOperationXml
getAdapter, load, loadOne, loadOperation
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, loadOrder, setExceptionHandler, store
-
-
-
-
Constructor Detail
-
CommonTurnoutOperationXml
public CommonTurnoutOperationXml()
-
-
Method Detail
-
store
public org.jdom2.Element store(java.lang.Object op)
Description copied from class:TurnoutOperationXml
common part of store - create the element and store the name and the class- Specified by:
store
in interfaceXmlAdapter
- Overrides:
store
in classTurnoutOperationXml
- Parameters:
op
- TurnoutOperation object- Returns:
- partially filled element
-
loadOne
public TurnoutOperation loadOne(org.jdom2.Element e, java.lang.reflect.Constructor<?> constr, int di, int dmt)
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
-
-