Class LogixNG_SelectNamedBeanXml<E extends NamedBean>

  • Type Parameters:
    E - the type of the named bean

    public class LogixNG_SelectNamedBeanXml<E extends NamedBean>
    extends java.lang.Object
    Xml class for jmri.jmrit.logixng.util.LogixNG_SelectNamedBean.
    • Method Detail

      • store

        public org.jdom2.Element store​(LogixNG_SelectNamedBean<E> selectNamedBean,
                                       java.lang.String tagName)
        Default implementation for storing the contents of a LogixNG_SelectNamedBean
        Parameters:
        selectNamedBean - 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_SelectNamedBean<E> selectNamedBean,
                               java.lang.String beanElementName)
                        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
        selectNamedBean - the LogixNG_SelectNamedBean
        beanElementName - the name of the element of the bean, for example "turnout"
        Throws:
        JmriConfigureXmlException - if an exception occurs
      • loadLegacy

        public void loadLegacy​(org.jdom2.Element shared,
                               LogixNG_SelectNamedBean<E> selectNamedBean,
                               java.lang.String beanElementName,
                               java.lang.String addressingElementName,
                               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
        selectNamedBean - the LogixNG_SelectNamedBean
        beanElementName - the name of the element of the bean, for example "turnout"
        addressingElementName - the name of the element of the addressing, for example "addressing"
        referenceElementName - the name of the element of the reference, for example "reference"
        localVariableElementName - the name of the element of the local variable, for example "localVariable"
        formulaElementName - the name of the element of the formula, for example "formula"
        Throws:
        JmriConfigureXmlException - if an exception occurs