Class EntryExitPairsXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrit.entryexit.configurexml.EntryExitPairsXml
- All Implemented Interfaces:
XmlAdapter
This module handles configuration for the Entry Exit pairs used in
interlocking on a Layout Editor Panel.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.configurexml.AbstractXmlAdapter
AbstractXmlAdapter.EnumIO<T extends Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends Enum<T>> -
Field Summary
Fields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanload(org.jdom2.Element shared, org.jdom2.Element perNode) Load, starting with the layoutBlock element, then all the value-icon pairs.intvoidsetStoreElementClass(org.jdom2.Element messages) Define attribute for an element that is to be stored.org.jdom2.ElementDefault implementation for storing the contents of a PositionablePoint.Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, setExceptionHandler, store
-
Constructor Details
-
EntryExitPairsXml
public EntryExitPairsXml()
-
-
Method Details
-
store
Default implementation for storing the contents of a PositionablePoint.- Parameters:
o- Object to store, of type PositionablePoint- Returns:
- Element containing the complete info
-
setStoreElementClass
Define attribute for an element that is to be stored.- Parameters:
messages- Storage element
-
load
Load, starting with the layoutBlock element, then all the value-icon pairs.- Specified by:
loadin interfaceXmlAdapter- Overrides:
loadin classAbstractXmlAdapter- Parameters:
shared- Top level Element to unpackperNode- ignored in this application- Returns:
- true if loaded without errors; false otherwise
-
loadOrder
Description copied from class:AbstractXmlAdapter- Specified by:
loadOrderin interfaceXmlAdapter- Overrides:
loadOrderin classAbstractXmlAdapter
-