Package jmri.jmrit.sample.configurexml
Class SampleFunctionalClassXml
- java.lang.Object
 - 
- jmri.configurexml.AbstractXmlAdapter
 - 
- jmri.jmrit.sample.configurexml.SampleFunctionalClassXml
 
 
 
- 
- All Implemented Interfaces:
 XmlAdapter
public class SampleFunctionalClassXml extends AbstractXmlAdapter
Handle XML persistance of SampleFunctionalClass objects.Note we have not (yet) updated xml/schema to provide an XML schema for this sample. Configure PanelPro to first run the jython/TurnOffXmlValidation.py script to disable verification when loading files written by this.
 
- 
- 
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 SampleFunctionalClassXml() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidload(org.jdom2.Element element, java.lang.Object o)Update static data from XML filebooleanload(org.jdom2.Element shared, org.jdom2.Element perNode)Create a set of configured objects from their XML description.intloadOrder()org.jdom2.Elementstore(java.lang.Object o)Default implementation for storing the contents of a SampleFunctionalClassXml.- 
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, setExceptionHandler, store 
 - 
 
 - 
 
- 
- 
Field Detail
- 
format
final java.text.SimpleDateFormat format
 
 - 
 
- 
Constructor Detail
- 
SampleFunctionalClassXml
public SampleFunctionalClassXml()
 
 - 
 
- 
Method Detail
- 
store
public org.jdom2.Element store(java.lang.Object o)
Default implementation for storing the contents of a SampleFunctionalClassXml.- Parameters:
 o- Object to store- Returns:
 - Element containing the complete info
 
 
- 
load
public boolean load(org.jdom2.Element shared, org.jdom2.Element perNode)
Description copied from class:AbstractXmlAdapterCreate a set of configured objects from their XML description.- 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
 
 
- 
load
public void load(org.jdom2.Element element, java.lang.Object o)
Update static data from XML file- Specified by:
 loadin interfaceXmlAdapter- Overrides:
 loadin classAbstractXmlAdapter- Parameters:
 element- Top level Element to unpack.o- ignored
 
- 
loadOrder
public int loadOrder()
Description copied from class:AbstractXmlAdapter- Specified by:
 loadOrderin interfaceXmlAdapter- Overrides:
 loadOrderin classAbstractXmlAdapter
 
 - 
 
 -