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
- Since:
- 4.21.2
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.configurexml.AbstractXmlAdapter
AbstractXmlAdapter.EnumIO<T extends Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends Enum<T>> -
Field Summary
FieldsFields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class jmri.jmrix.configurexml.AbstractConnectionConfigXml
extendElement, findParmValue, loadCommon, loadOptions, register, saveOptions, setOutputInterval, store, storeCommon, unpackElementMethods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, load, loadDeferred, loadOrder, setExceptionHandler
-
Field Details
-
portController
-
-
Constructor Details
-
IpocsConnectionConfigXml
public IpocsConnectionConfigXml()
-
-
Method Details
-
store
Description copied from interface:XmlAdapterStore 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: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
- Throws:
JmriConfigureXmlException- when a error prevents creating the objects as as required by the input XML
-
getInstance
- Specified by:
getInstancein classAbstractConnectionConfigXml
-
getInstance
-
register
- Specified by:
registerin classAbstractConnectionConfigXml
-
dispose
- Specified by:
disposein classAbstractConnectionConfigXml
-