jmri.jmrix.configurexml
Class AbstractConnectionConfigXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractConnectionConfigXml
- All Implemented Interfaces:
- XmlAdapter
public abstract class AbstractConnectionConfigXml
- extends AbstractXmlAdapter
Abstract base (and partial implementation) for
classes persisting the status of serial port adapters.
|
Method Summary |
boolean |
load(Element e)
Update static data from XML file |
void |
load(Element element,
Object o)
Update static data from XML file |
Element |
store(Object o)
Default implementation for storing the static contents of the serial port implementation |
AbstractConnectionConfigXml
public AbstractConnectionConfigXml()
store
public Element store(Object o)
- Default implementation for storing the static contents of the serial port implementation
- Parameters:
o - Object to store, of type PositionableLabel
- Returns:
- Element containing the complete info
load
public boolean load(Element e)
throws Exception
- Update static data from XML file
- Parameters:
e - Top level Element to unpack.
- Returns:
- true if successful
- Throws:
Exception - when a error prevents creating the objects as
as required by the input XML.
load
public void load(Element element,
Object o)
- Update static data from XML file
- Parameters:
element - Top level Element to unpack.o - Implementation-specific Object needed for the conversion
Copyright © 1997 - 2010 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: