Class 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 interface XmlAdapter
        Overrides:
        store in class TurnoutOperationXml
        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 create
        di - default interval
        dmt - default max tries
        Returns:
        a TurnoutOperation or null if unable to load from e