Class AbstractUsbConnectionConfigXml

All Implemented Interfaces:
XmlAdapter
Direct Known Subclasses:
AnymaDMX_ConnectionConfigXml

Abstract base (and partial implementation) for classes persisting the status of (non-serial) USB adapters.

IOW: if you're just using usb to access a serial buss on the other side then you should be using AbstractSerialConnectionConfigXml instead.

  • Field Details

  • Constructor Details

  • Method Details

    • setAdapter

      protected void setAdapter(UsbPortAdapter usbPortAdapter)
      set the usb port adapter
      Parameters:
      usbPortAdapter - the usb port adapter to set
    • getAdapter

      get the usb port adapter
      Returns:
      the usb port adapter
    • getInstance

      protected abstract void getInstance(Object object)
      get instance
      Parameters:
      object - to get the instance of
    • store

      public org.jdom2.Element store(Object object)
      Store the object in XML
      Parameters:
      object - 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
    • extendElement

      protected void extendElement(org.jdom2.Element e)
      Customizable method if you need to add anything more
      Overrides:
      extendElement in class AbstractConnectionConfigXml
      Parameters:
      e - Element being created, update as needed
    • load

      public boolean load(org.jdom2.Element shared, org.jdom2.Element perNode)
      load from xml elements
      Specified by:
      load in interface XmlAdapter
      Overrides:
      load in class AbstractXmlAdapter
      Parameters:
      shared - element
      perNode - element
      Returns:
      boolean true if successful
    • load

      public void load(org.jdom2.Element element, Object o)
      Update static data from XML file
      Specified by:
      load in interface XmlAdapter
      Overrides:
      load in class AbstractXmlAdapter
      Parameters:
      element - Top level Element to unpack.
      o - Implementation-specific Object needed for the conversion
    • dispose

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