Class AbstractUsbConnectionConfigXml

    • Method Detail

      • setAdapter

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

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

        public org.jdom2.Element store​(java.lang.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
      • 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,
                         java.lang.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