Class LogixNG_SelectEnumXml<E extends java.lang.Enum<?>>

  • Type Parameters:
    E - the type of enum

    public class LogixNG_SelectEnumXml<E extends java.lang.Enum<?>>
    extends java.lang.Object
    Xml class for jmri.jmrit.logixng.util.LogixNG_SelectEnum.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void load​(org.jdom2.Element enumElement, LogixNG_SelectEnum<E> selectEnum)  
      void loadLegacy​(org.jdom2.Element shared, LogixNG_SelectEnum<E> selectEnum, java.lang.String addressingElementName, java.lang.String enumElementName, java.lang.String referenceElementName, java.lang.String localVariableElementName, java.lang.String formulaElementName)
      This method is for backward compability up to and including 4.99.4.Remove this class after 5.0.
      org.jdom2.Element store​(LogixNG_SelectEnum<E> selectEnum, java.lang.String tagName)
      Default implementation for storing the contents of a LogixNG_SelectEnum
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • store

        public org.jdom2.Element store​(LogixNG_SelectEnum<E> selectEnum,
                                       java.lang.String tagName)
        Default implementation for storing the contents of a LogixNG_SelectEnum
        Parameters:
        selectEnum - the LogixNG_SelectTable object
        tagName - the name of the element
        Returns:
        Element containing the complete info
      • loadLegacy

        public void loadLegacy​(org.jdom2.Element shared,
                               LogixNG_SelectEnum<E> selectEnum,
                               java.lang.String addressingElementName,
                               java.lang.String enumElementName,
                               java.lang.String referenceElementName,
                               java.lang.String localVariableElementName,
                               java.lang.String formulaElementName)
                        throws JmriConfigureXmlException
        This method is for backward compability up to and including 4.99.4.Remove this class after 5.0.
        Parameters:
        shared - the shared element
        selectEnum - the LogixNG_SelectEnum
        addressingElementName - the name of the element of the addressing, for example "state"
        enumElementName - the name of the element of the enum, for example "state"
        referenceElementName - the name of the element of the reference, for example "state"
        localVariableElementName - the name of the element of the local variable, for example "state"
        formulaElementName - the name of the element of the formula, for example "state"
        Throws:
        JmriConfigureXmlException - if an exception occurs