Class 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.
  • Constructor Details

  • Method Details

    • store

      public org.jdom2.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(org.jdom2.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"
      constr - constructor of subclass of TurnoutOperation to create
      di - default interval
      dmt - default max tries
      Returns:
      a TurnoutOperation or null if unable to load from e