jmri.jmrix.configurexml
Class AbstractSerialConnectionConfigXml

Show UML class diagram
java.lang.Object
  extended by jmri.configurexml.AbstractXmlAdapter
      extended by jmri.jmrix.configurexml.AbstractConnectionConfigXml
          extended by jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
All Implemented Interfaces:
XmlAdapter
Direct Known Subclasses:
ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml, ConnectionConfigXml

public abstract class AbstractSerialConnectionConfigXml
extends AbstractConnectionConfigXml

Abstract base (and partial implementation) for classes persisting the status of serial port adapters.


Field Summary
protected  SerialPortAdapter adapter
           
(package private) static org.slf4j.Logger log
           
protected static ResourceBundle rb
           
 
Constructor Summary
AbstractSerialConnectionConfigXml()
           
 
Method Summary
protected  void extendElement(org.jdom.Element e)
          Customizable method if you need to add anything more
protected abstract  void getInstance()
           
protected  void getInstance(Object object)
           
 boolean load(org.jdom.Element e)
          Update static data from XML file
 void load(org.jdom.Element element, Object o)
          Update static data from XML file
protected abstract  void register()
           
 org.jdom.Element store(Object object)
          Default implementation for storing the static contents of the serial port implementation
protected  void unpackElement(org.jdom.Element e)
          Customizable method if you need to add anything more
 
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
loadCommon, loadOptions, saveOptions, storeCommon
 
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
creationErrorEncountered, getConfigXmlManager, loadDeferred, loadOrder, setConfigXmlManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rb

protected static final ResourceBundle rb

adapter

protected SerialPortAdapter adapter

log

static org.slf4j.Logger log
Constructor Detail

AbstractSerialConnectionConfigXml

public AbstractSerialConnectionConfigXml()
Method Detail

getInstance

protected abstract void getInstance()
Specified by:
getInstance in class AbstractConnectionConfigXml

register

protected abstract void register()
Specified by:
register in class AbstractConnectionConfigXml

getInstance

protected void getInstance(Object object)

store

public org.jdom.Element store(Object object)
Default implementation for storing the static contents of the serial port implementation

Specified by:
store in interface XmlAdapter
Specified by:
store in class AbstractConnectionConfigXml
Parameters:
object - Object to store, of type PositionableLabel
Returns:
Element containing the complete info

extendElement

protected void extendElement(org.jdom.Element e)
Customizable method if you need to add anything more

Overrides:
extendElement in class AbstractConnectionConfigXml
Parameters:
e - Element being created, update as needed

load

public boolean load(org.jdom.Element e)
             throws Exception
Update static data from XML file

Specified by:
load in interface XmlAdapter
Specified by:
load in class AbstractConnectionConfigXml
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.

unpackElement

protected void unpackElement(org.jdom.Element e)
Customizable method if you need to add anything more

Overrides:
unpackElement in class AbstractConnectionConfigXml
Parameters:
e - Element being created, update as needed

load

public void load(org.jdom.Element element,
                 Object o)
Update static data from XML file

Specified by:
load in interface XmlAdapter
Overrides:
load in class AbstractConnectionConfigXml
Parameters:
element - Top level Element to unpack.
o - Implementation-specific Object needed for the conversion


Copyright © 1997-2013 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