Class FileHistoryXml
- java.lang.Object
- 
- jmri.configurexml.AbstractXmlAdapter
- 
- jmri.jmrit.revhistory.configurexml.FileHistoryXml
 
 
- 
- All Implemented Interfaces:
- XmlAdapter
 
 public class FileHistoryXml extends AbstractXmlAdapter Load/Store FileHistory objects.This interacts somewhat differently with the ConfigureXML system. FileHistory 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.AbstractXmlAdapterAbstractXmlAdapter.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>>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description (package private) static intdefaultDepth- 
Fields inherited from class jmri.configurexml.AbstractXmlAdapterSTR_FALSE, STR_NO, STR_TRUE, STR_YES
 
- 
 - 
Constructor SummaryConstructors Constructor Description FileHistoryXml()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static org.jdom2.ElementhistoryElement(FileHistory r, int depth)voidload(org.jdom2.Element e, java.lang.Object o)Create a set of configured objects from their XML description, using an auxiliary object.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 filebooleanloadDirectly(org.jdom2.Element e)Load RevHistory from an element.static FileHistoryloadFileHistory(org.jdom2.Element e)static voidloadOperation(FileHistory r, org.jdom2.Element e)(package private) static org.jdom2.ElementoperationElement(FileHistory.OperationMemo r, int depth)org.jdom2.Elementstore(java.lang.Object o)Store thestatic org.jdom2.ElementstoreDirectly(java.lang.Object o, java.lang.String fileName)- 
Methods inherited from class jmri.configurexml.AbstractXmlAdaptergetAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler, store
 
- 
 
- 
- 
- 
Field Detail- 
defaultDepthstatic int defaultDepth 
 
- 
 - 
Constructor Detail- 
FileHistoryXmlpublic FileHistoryXml() 
 
- 
 - 
Method Detail- 
loadpublic 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:
- loadin interface- XmlAdapter
- Overrides:
- loadin class- AbstractXmlAdapter
- Parameters:
- shared- Top-level XML element containing the common, multi-node elements of the description
- perNode- Top-level XML element containing the private, single-node elements of the description
- Returns:
- true if successful
 
 - 
loadDirectlypublic boolean loadDirectly(org.jdom2.Element e) Load RevHistory from an element.If no RevHistory already present in InstanceManager, creates one and adds this. Then adds, instead of replacing, the history information - Parameters:
- e- element to load.
- Returns:
- true when complete, false if unexpected.
 
 - 
loadFileHistorypublic static FileHistory loadFileHistory(org.jdom2.Element e) 
 - 
loadOperationpublic static void loadOperation(FileHistory r, org.jdom2.Element e) 
 - 
loadpublic void load(org.jdom2.Element e, java.lang.Object o) Create a set of configured objects from their XML description, using an auxiliary object.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. - Specified by:
- loadin interface- XmlAdapter
- Overrides:
- loadin class- AbstractXmlAdapter
- Parameters:
- e- Top-level XML element containing the description
- o- Implementation-specific Object needed for the conversion
 
 - 
storepublic org.jdom2.Element store(java.lang.Object o) Store the- 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
 
 - 
storeDirectlypublic static org.jdom2.Element storeDirectly(java.lang.Object o, java.lang.String fileName) 
 - 
historyElementstatic org.jdom2.Element historyElement(FileHistory r, int depth) 
 - 
operationElementstatic org.jdom2.Element operationElement(FileHistory.OperationMemo r, int depth) 
 
- 
 
-