Package jmri.util.docbook.configurexml
Class RevHistoryXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.util.docbook.configurexml.RevHistoryXml
- All Implemented Interfaces:
XmlAdapter
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 Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends Enum<T>> -
Field Summary
Fields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static org.jdom2.ElementvoidThis method is not implemented: See class comment above for more discussion.booleanload(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 RevHistoryloadRevHistory(org.jdom2.Element e) (package private) static voidloadRevision(RevHistory r, org.jdom2.Element e) (package private) static org.jdom2.Elementorg.jdom2.ElementStore the object in XMLstatic org.jdom2.ElementMethods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler, store
-
Constructor Details
-
RevHistoryXml
public RevHistoryXml()
-
-
Method Details
-
load
Usual configurexml method, this one doesn't do anything because the content is explicitly loaded from the file- Specified by:
loadin interfaceXmlAdapter- Overrides:
loadin 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
-
loadRevision
-
load
This method is not implemented: See class comment above for more discussion.- Specified by:
loadin interfaceXmlAdapter- Overrides:
loadin classAbstractXmlAdapter- Parameters:
e- Top-level XML element containing the descriptiono- Implementation-specific Object needed for the conversion
-
store
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
-
historyElement
-
revisionElement
-