Package jmri.util.docbook.configurexml
Class RevHistoryXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.util.docbook.configurexml.RevHistoryXml
-
- All Implemented Interfaces:
XmlAdapter
public class RevHistoryXml extends AbstractXmlAdapter
Load/Store RevHistory objects.This interacts somewhat differently with the ConfigureXML system. RevHistory objects are _not_ registed with the manager, but rather handled explicitly by them. The "load()" method is therefore a null-op here.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.configurexml.AbstractXmlAdapter
AbstractXmlAdapter.EnumIO<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends java.lang.Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends java.lang.Enum<T>>
-
-
Constructor Summary
Constructors Constructor Description RevHistoryXml()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static org.jdom2.Element
historyElement(RevHistory r)
void
load(org.jdom2.Element e, java.lang.Object o)
This method is not implemented: See class comment above for more discussion.boolean
load(org.jdom2.Element shared, org.jdom2.Element perNode)
Usual configurexml method, this one doesn't do anything because the content is explicitly loaded from the filestatic RevHistory
loadRevHistory(org.jdom2.Element e)
(package private) static void
loadRevision(RevHistory r, org.jdom2.Element e)
(package private) static org.jdom2.Element
revisionElement(Revision r)
org.jdom2.Element
store(java.lang.Object o)
Store the object in XMLstatic org.jdom2.Element
storeDirectly(java.lang.Object o)
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler, store
-
-
-
-
Constructor Detail
-
RevHistoryXml
public RevHistoryXml()
-
-
Method Detail
-
load
public boolean load(org.jdom2.Element shared, org.jdom2.Element perNode)
Usual configurexml method, this one doesn't do anything because the content is explicitly loaded from the file- Specified by:
load
in interfaceXmlAdapter
- Overrides:
load
in classAbstractXmlAdapter
- Parameters:
shared
- Top-level XML element containing the common, multi-node elements of the descriptionperNode
- Top-level XML element containing the private, single-node elements of the description- Returns:
- true if successful
-
loadRevHistory
public static RevHistory loadRevHistory(org.jdom2.Element e)
-
loadRevision
static void loadRevision(RevHistory r, org.jdom2.Element e)
-
load
public void load(org.jdom2.Element e, java.lang.Object o)
This method is not implemented: See class comment above for more discussion.- Specified by:
load
in interfaceXmlAdapter
- Overrides:
load
in classAbstractXmlAdapter
- Parameters:
e
- Top-level XML element containing the descriptiono
- Implementation-specific Object needed for the conversion
-
store
public org.jdom2.Element store(java.lang.Object o)
Store the object in XML- Parameters:
o
- The object to be recorded. Specific XmlAdapter implementations will require this to be of a specific type; that binding is done in ConfigXmlManager.- Returns:
- The XML representation Element
-
storeDirectly
public static org.jdom2.Element storeDirectly(java.lang.Object o)
-
historyElement
static org.jdom2.Element historyElement(RevHistory r)
-
revisionElement
static org.jdom2.Element revisionElement(Revision r)
-
-