Class LogixNG_SelectEnumXml<E extends java.lang.Enum<?>>
- java.lang.Object
-
- jmri.jmrit.logixng.util.configurexml.LogixNG_SelectEnumXml<E>
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description LogixNG_SelectEnumXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidload(org.jdom2.Element enumElement, LogixNG_SelectEnum<E> selectEnum)voidloadLegacy(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.Elementstore(LogixNG_SelectEnum<E> selectEnum, java.lang.String tagName)Default implementation for storing the contents of a LogixNG_SelectEnum
-
-
-
Constructor Detail
-
LogixNG_SelectEnumXml
public LogixNG_SelectEnumXml()
-
-
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 objecttagName- the name of the element- Returns:
- Element containing the complete info
-
load
public void load(org.jdom2.Element enumElement, LogixNG_SelectEnum<E> selectEnum) throws JmriConfigureXmlException
- Throws:
JmriConfigureXmlException
-
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 elementselectEnum- the LogixNG_SelectEnumaddressingElementName- 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
-
-