Class EntryExitPairsXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.jmrit.entryexit.configurexml.EntryExitPairsXml
-
- All Implemented Interfaces:
XmlAdapter
public class EntryExitPairsXml extends AbstractXmlAdapter
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 java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends java.lang.Enum<T>>
-
-
Constructor Summary
Constructors Constructor Description EntryExitPairsXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
load(org.jdom2.Element shared, org.jdom2.Element perNode)
Load, starting with the layoutBlock element, then all the value-icon pairs.int
loadOrder()
void
setStoreElementClass(org.jdom2.Element messages)
Define attribute for an element that is to be stored.org.jdom2.Element
store(java.lang.Object o)
Default 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 Detail
-
EntryExitPairsXml
public EntryExitPairsXml()
-
-
Method Detail
-
store
public org.jdom2.Element store(java.lang.Object o)
Default implementation for storing the contents of a PositionablePoint.- Parameters:
o
- Object to store, of type PositionablePoint- Returns:
- Element containing the complete info
-
setStoreElementClass
public void setStoreElementClass(org.jdom2.Element messages)
Define attribute for an element that is to be stored.- Parameters:
messages
- Storage element
-
load
public boolean load(org.jdom2.Element shared, org.jdom2.Element perNode)
Load, starting with the layoutBlock element, then all the value-icon pairs.- Specified by:
load
in interfaceXmlAdapter
- Overrides:
load
in classAbstractXmlAdapter
- Parameters:
shared
- Top level Element to unpackperNode
- ignored in this application- Returns:
- true if loaded without errors; false otherwise
-
loadOrder
public int loadOrder()
Description copied from class:AbstractXmlAdapter
- Specified by:
loadOrder
in interfaceXmlAdapter
- Overrides:
loadOrder
in classAbstractXmlAdapter
-
-