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.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>>
 
- 
 - 
Constructor SummaryConstructors Constructor Description SampleFunctionalClassXml()
 - 
Method SummaryAll 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.AbstractXmlAdaptergetAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, setExceptionHandler, store
 
- 
 
- 
- 
- 
Field Detail- 
formatfinal java.text.SimpleDateFormat format 
 
- 
 - 
Constructor Detail- 
SampleFunctionalClassXmlpublic SampleFunctionalClassXml() 
 
- 
 - 
Method Detail- 
storepublic 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
 
 - 
loadpublic 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 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
 
 - 
loadpublic void load(org.jdom2.Element element, java.lang.Object o) Update static data from XML file- Specified by:
- loadin interface- XmlAdapter
- Overrides:
- loadin class- AbstractXmlAdapter
- Parameters:
- element- Top level Element to unpack.
- o- ignored
 
 - 
loadOrderpublic int loadOrder() Description copied from class:AbstractXmlAdapter- Specified by:
- loadOrderin interface- XmlAdapter
- Overrides:
- loadOrderin class- AbstractXmlAdapter
 
 
- 
 
-