|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractSerialConnectionConfigXml
public abstract class AbstractSerialConnectionConfigXml
Abstract base (and partial implementation) for classes persisting the status of serial port adapters.
| Field Summary | |
|---|---|
protected SerialPortAdapter |
adapter
|
| Constructor Summary | |
|---|---|
AbstractSerialConnectionConfigXml()
|
|
| Method Summary | |
|---|---|
protected void |
extendElement(Element e)
Customizable method if you need to add anything more |
protected abstract void |
getInstance()
|
protected void |
getInstance(Object object)
|
boolean |
load(Element e)
Update static data from XML file |
void |
load(Element element,
Object o)
Update static data from XML file |
protected abstract void |
register()
|
Element |
store(Object object)
Default implementation for storing the static contents of the serial port implementation |
protected void |
unpackElement(Element e)
Customizable method if you need to add anything more |
| 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 |
|---|
protected SerialPortAdapter adapter
| Constructor Detail |
|---|
public AbstractSerialConnectionConfigXml()
| Method Detail |
|---|
protected abstract void getInstance()
protected abstract void register()
protected void getInstance(Object object)
public Element store(Object object)
object - Object to store, of type PositionableLabel
protected void extendElement(Element e)
e - Element being created, update as needed
public boolean load(Element e)
throws Exception
e - Top level Element to unpack.
Exception - when a error prevents creating the objects as
as required by the input XML.protected void unpackElement(Element e)
e - Element being created, update as needed
public void load(Element element,
Object o)
element - Top level Element to unpack.o - Implementation-specific Object needed for the conversion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||