Class LogixNG_SelectNamedBeanXml<E extends NamedBean>
java.lang.Object
jmri.jmrit.logixng.util.configurexml.LogixNG_SelectNamedBeanXml<E>
- Type Parameters:
E- the type of the named bean
Xml class for jmri.jmrit.logixng.util.LogixNG_SelectNamedBean.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidload(org.jdom2.Element namedBeanElement, LogixNG_SelectNamedBean<E> selectNamedBean) voidload(org.jdom2.Element namedBeanElement, LogixNG_SelectNamedBean<E> selectNamedBean, boolean delayedLookup) voidloadLegacy(org.jdom2.Element shared, LogixNG_SelectNamedBean<E> selectNamedBean, String beanElementName) This method is for backward compability up to and including 4.99.4.Remove this class after 5.0.voidloadLegacy(org.jdom2.Element shared, LogixNG_SelectNamedBean<E> selectNamedBean, String beanElementName, String addressingElementName, String referenceElementName, String localVariableElementName, String formulaElementName) This method is for backward compability up to and including 4.99.4.Remove this class after 5.0.org.jdom2.Elementstore(LogixNG_SelectNamedBean<E> selectNamedBean, String tagName) Default implementation for storing the contents of a LogixNG_SelectNamedBeanorg.jdom2.Elementstore(LogixNG_SelectNamedBean<E> selectNamedBean, String tagName, LogixNG_SelectNamedBeanXml.StoreNamedBean storeNamedBean)
-
Constructor Details
-
LogixNG_SelectNamedBeanXml
public LogixNG_SelectNamedBeanXml()
-
-
Method Details
-
store
Default implementation for storing the contents of a LogixNG_SelectNamedBean- Parameters:
selectNamedBean- the LogixNG_SelectTable objecttagName- the name of the element- Returns:
- Element containing the complete info
-
store
public org.jdom2.Element store(LogixNG_SelectNamedBean<E> selectNamedBean, String tagName, LogixNG_SelectNamedBeanXml.StoreNamedBean storeNamedBean) -
load
public void load(org.jdom2.Element namedBeanElement, LogixNG_SelectNamedBean<E> selectNamedBean) throws JmriConfigureXmlException - Throws:
JmriConfigureXmlException
-
load
public void load(org.jdom2.Element namedBeanElement, LogixNG_SelectNamedBean<E> selectNamedBean, boolean delayedLookup) throws JmriConfigureXmlException - Throws:
JmriConfigureXmlException
-
loadLegacy
public void loadLegacy(org.jdom2.Element shared, LogixNG_SelectNamedBean<E> selectNamedBean, 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 elementselectNamedBean- the LogixNG_SelectNamedBeanbeanElementName- 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, String beanElementName, String addressingElementName, String referenceElementName, String localVariableElementName, 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 elementselectNamedBean- the LogixNG_SelectNamedBeanbeanElementName- 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
-