Package jmri.jmrix.ipocs.configurexml
Class IpocsConnectionConfigXml
- java.lang.Object
-
- jmri.configurexml.AbstractXmlAdapter
-
- jmri.jmrix.configurexml.AbstractConnectionConfigXml
-
- jmri.jmrix.ipocs.configurexml.IpocsConnectionConfigXml
-
- All Implemented Interfaces:
XmlAdapter
public class IpocsConnectionConfigXml extends AbstractConnectionConfigXml
- Since:
- 4.21.2
-
-
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>>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) IpocsPortController
portController
-
Constructor Summary
Constructors Constructor Description IpocsConnectionConfigXml()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
dispose()
protected void
getInstance()
protected void
getInstance(IpocsConnectionConfig o)
boolean
load(org.jdom2.Element shared, org.jdom2.Element perNode)
Create a set of configured objects from their XML description.protected void
register()
org.jdom2.Element
store(java.lang.Object o)
Store the object in XML-
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
extendElement, findParmValue, loadCommon, loadOptions, register, saveOptions, setOutputInterval, store, storeCommon, unpackElement
-
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, loadOrder, setExceptionHandler
-
-
-
-
Field Detail
-
portController
IpocsPortController portController
-
-
Constructor Detail
-
IpocsConnectionConfigXml
public IpocsConnectionConfigXml()
-
-
Method Detail
-
store
public org.jdom2.Element store(java.lang.Object o)
Description copied from interface:XmlAdapter
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
-
load
public boolean load(org.jdom2.Element shared, org.jdom2.Element perNode) throws JmriConfigureXmlException
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
- Throws:
JmriConfigureXmlException
- when a error prevents creating the objects as as required by the input XML
-
getInstance
protected void getInstance()
- Specified by:
getInstance
in classAbstractConnectionConfigXml
-
getInstance
protected void getInstance(IpocsConnectionConfig o)
-
register
protected void register()
- Specified by:
register
in classAbstractConnectionConfigXml
-
dispose
protected void dispose()
- Specified by:
dispose
in classAbstractConnectionConfigXml
-
-