jmri.configurexml.turnoutoperations
Class CommonTurnoutOperationXml

java.lang.Object
  extended by jmri.configurexml.AbstractXmlAdapter
      extended by jmri.configurexml.turnoutoperations.TurnoutOperationXml
          extended by 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.

Author:
John Harper Copyright 2005

Constructor Summary
CommonTurnoutOperationXml()
           
 
Method Summary
 TurnoutOperation loadOne(Element e, Constructor<?> constr, int di, int dmt)
          called for a newly-constructed object to load it from an XML element
 Element store(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, load, loadOne, loadOperation
 
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
creationErrorEncountered, getConfigXmlManager, loadDeferred, loadOrder, setConfigXmlManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonTurnoutOperationXml

public CommonTurnoutOperationXml()
Method Detail

store

public Element store(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 interface XmlAdapter
Overrides:
store in class TurnoutOperationXml
Parameters:
op - TurnoutOperation object
Returns:
partially filled element

loadOne

public TurnoutOperation loadOne(Element e,
                                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"


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads