|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XmlAdapter
Interface assumed during configuration operations.
ConfigXmlManager| Method Summary | |
|---|---|
void |
creationErrorEncountered(String description,
String systemName,
String userName,
Throwable exception)
Invoke common handling of errors that happen during the "load" process. |
boolean |
load(org.jdom.Element e)
Create a set of configured objects from their XML description |
void |
load(org.jdom.Element e,
Object o)
Create a set of configured objects from their XML description, using an auxiliary object. |
boolean |
loadDeferred()
Determine if this set of configured objects should be loaded after basic GUI construction is completed |
int |
loadOrder()
|
void |
setConfigXmlManager(ConfigXmlManager c)
|
org.jdom.Element |
store(Object o)
Store the |
| Method Detail |
|---|
boolean load(org.jdom.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.boolean loadDeferred()
void load(org.jdom.Element e,
Object o)
throws Exception
For example, the auxilary object o might be a manager or GUI of some type that needs to be informed as each object is created.
e - Top-level XML element containing the descriptiono - Implementation-specific Object needed for the conversion
Exception - when a error prevents creating the objects as
as required by the input XML.org.jdom.Element store(Object o)
o - The object to be recorded. Specific XmlAdapter
implementations will require this to be of a specific
type; that binding is done in ConfigXmlManager.
int loadOrder()
void creationErrorEncountered(String description,
String systemName,
String userName,
Throwable exception)
throws JmriConfigureXmlException
description - description of error encounteredsystemName - System name of bean being handled, may be nulluserName - used name of the bean being handled, may be nullexception - Any exception being handled in the processing, may be null
JmriConfigureXmlException - in place for later expansion;
should be propagated upward to higher-level error handlingvoid setConfigXmlManager(ConfigXmlManager c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||