Class ConnectionConfigXml

All Implemented Interfaces:
XmlAdapter

Handle XML persistance of virtual layout connections

This class is invoked from jmrix.JmrixConfigPaneXml on write, as that class is the one actually registered. Reads are brought here directly via the class attribute in the XML.

  • Field Details

  • Constructor Details

  • Method Details

    • getInstance

      protected void getInstance()
      Specified by:
      getInstance in class AbstractConnectionConfigXml
    • getInstance

      protected void getInstance(Object object)
    • store

      public org.jdom2.Element store(Object o)
      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)
      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 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
    • register

      protected void register()
      Specified by:
      register in class AbstractConnectionConfigXml
    • dispose

      protected void dispose()
      Specified by:
      dispose in class AbstractConnectionConfigXml