Class LogixNG_SelectEnumXml<E extends Enum<?>>
java.lang.Object
jmri.jmrit.logixng.util.configurexml.LogixNG_SelectEnumXml<E>
- Type Parameters:
E- the type of enum
Xml class for jmri.jmrit.logixng.util.LogixNG_SelectEnum.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidload(org.jdom2.Element enumElement, LogixNG_SelectEnum<E> selectEnum) voidloadLegacy(org.jdom2.Element shared, LogixNG_SelectEnum<E> selectEnum, String addressingElementName, String enumElementName, 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_SelectEnum<E> selectEnum, String tagName) Default implementation for storing the contents of a LogixNG_SelectEnum
-
Constructor Details
-
LogixNG_SelectEnumXml
public LogixNG_SelectEnumXml()
-
-
Method Details
-
store
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, String addressingElementName, String enumElementName, 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 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
-