jmri.jmrix.configurexml
Class AbstractConnectionConfigXml

Show UML class diagram
java.lang.Object
  extended by jmri.configurexml.AbstractXmlAdapter
      extended by 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.


Constructor Summary
AbstractConnectionConfigXml()
           
 
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
 
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
creationErrorEncountered, setConfigXmlManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConnectionConfigXml

public AbstractConnectionConfigXml()
Method Detail

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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads