Class MqttLightManagerXml

All Implemented Interfaces:
XmlAdapter

Provides load and store functionality for configuring MqttTurnoutManagers.

Uses the store method from the abstract base class, but provides a load method here.

  • Constructor Details

  • Method Details

    • setStoreElementClass

      public void setStoreElementClass(org.jdom2.Element turnouts)
      Description copied from class: AbstractLightManagerConfigXML
      Subclass provides implementation to create the correct top element, including the type information. Default implementation is to use the local class here.
      Specified by:
      setStoreElementClass in class AbstractLightManagerConfigXML
      Parameters:
      turnouts - The top-level element being created
    • load

      public boolean load(org.jdom2.Element shared)
      Description copied from class: AbstractXmlAdapter
      Create a set of configured objects from their XML description
      Specified by:
      load in interface XmlAdapter
      Overrides:
      load in class AbstractXmlAdapter
      Parameters:
      shared - Top-level XML element containing the description
      Returns:
      true if successful