|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.configurexml.turnoutoperations.TurnoutOperationXml
public abstract class TurnoutOperationXml
Superclass for save/restore of TurnoutOperation subclasses in XML.
| Constructor Summary | |
|---|---|
TurnoutOperationXml()
|
|
| Method Summary | |
|---|---|
static TurnoutOperationXml |
getAdapter(TurnoutOperation op)
Given an instance of a concrete subclass of the TurnoutOperation class, looks for a corresponding ...Xml class and creates an instance of it. |
boolean |
load(Element e)
inherited methods |
void |
load(Element element,
Object o)
Create a set of configured objects from their XML description, using an auxiliary object. |
abstract TurnoutOperation |
loadOne(Element e)
|
static TurnoutOperation |
loadOperation(Element e)
Load one operation, using the appropriate adapter |
Element |
store(Object o)
common part of store - create the element and store the name and the class |
| 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 |
| Constructor Detail |
|---|
public TurnoutOperationXml()
| Method Detail |
|---|
public boolean load(Element e)
throws Exception
e - Top-level XML element containing the description
Exception - when a error prevents creating the objects as
as required by the input XML.XmlAdapter.load(org.jdom.Element)public abstract TurnoutOperation loadOne(Element e)
public static TurnoutOperation loadOperation(Element e)
e - element for operation
public void load(Element element,
Object o)
XmlAdapterFor example, the auxilary object o might be a manager or GUI of some type that needs to be informed as each object is created.
element - Top-level XML element containing the descriptiono - Implementation-specific Object needed for the conversionXmlAdapter.load(org.jdom.Element, java.lang.Object)public Element store(Object o)
o - TurnoutOperation object
public static TurnoutOperationXml getAdapter(TurnoutOperation op)
op - operation for which configurator is required
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||