Package jmri.util.startup.configurexml
Class PerformActionModelXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.util.startup.configurexml.PerformActionModelXml
-
- All Implemented Interfaces:
XmlAdapter
public class PerformActionModelXml extends AbstractXmlAdapter
Handle XML persistence of PerformActionModel objects.- See Also:
PerformActionModelFactory
-
-
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 PerformActionModelXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
load(org.jdom2.Element shared, org.jdom2.Element perNode)
Create a set of configured objects from their XML description.boolean
loadDeferred()
Object should be loaded after basic GUI constructedorg.jdom2.Element
store(java.lang.Object o)
Default implementation for storing the model contents-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadOrder, setExceptionHandler, store
-
-
-
-
Constructor Detail
-
PerformActionModelXml
public PerformActionModelXml()
-
-
Method Detail
-
store
public org.jdom2.Element store(java.lang.Object o)
Default implementation for storing the model contents- Parameters:
o
- Object to store, of type PerformActonModel- Returns:
- Element containing the complete info
-
loadDeferred
public boolean loadDeferred()
Object should be loaded after basic GUI constructed- Specified by:
loadDeferred
in interfaceXmlAdapter
- Overrides:
loadDeferred
in classAbstractXmlAdapter
- Returns:
- true to defer loading
- See Also:
AbstractXmlAdapter.loadDeferred()
,XmlAdapter.loadDeferred()
-
load
public boolean load(org.jdom2.Element shared, org.jdom2.Element perNode)
Description copied from class:AbstractXmlAdapter
Create a set of configured objects from their XML description.- 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
-
-