|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.AbstractConnectionConfigXml
public abstract class AbstractConnectionConfigXml
Abstract base (and partial implementation) for classes persisting the status of serial port adapters.
| Field Summary | |
|---|---|
(package private) static org.slf4j.Logger |
log
|
(package private) static ResourceBundle |
rb
|
| Constructor Summary | |
|---|---|
AbstractConnectionConfigXml()
|
|
| Method Summary | |
|---|---|
protected void |
extendElement(org.jdom.Element e)
Customizable method if you need to add anything more |
protected abstract void |
getInstance()
|
abstract 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 void |
loadCommon(org.jdom.Element e,
PortAdapter adapter)
|
protected void |
loadOptions(org.jdom.Element e,
PortAdapter adapter)
|
protected abstract void |
register()
|
protected void |
saveOptions(org.jdom.Element e,
PortAdapter adapter)
|
abstract org.jdom.Element |
store(Object o)
Default implementation for storing the static contents of the serial port implementation |
protected void |
storeCommon(org.jdom.Element e,
PortAdapter adapter)
|
protected void |
unpackElement(org.jdom.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 |
|---|
static ResourceBundle rb
static org.slf4j.Logger log
| Constructor Detail |
|---|
public AbstractConnectionConfigXml()
| Method Detail |
|---|
protected abstract void getInstance()
protected abstract void register()
public abstract org.jdom.Element store(Object o)
o - Object to store, of type PositionableLabel
protected void storeCommon(org.jdom.Element e,
PortAdapter adapter)
protected void extendElement(org.jdom.Element e)
e - Element being created, update as needed
public abstract boolean load(org.jdom.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 loadCommon(org.jdom.Element e,
PortAdapter adapter)
protected void saveOptions(org.jdom.Element e,
PortAdapter adapter)
protected void loadOptions(org.jdom.Element e,
PortAdapter adapter)
protected void unpackElement(org.jdom.Element e)
e - Element being created, update as needed
public void load(org.jdom.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 | |||||||||