Class JAXBConverter

java.lang.Object
wt.ixb.impl.jaxb.JAXBConverter

public class JAXBConverter extends Object
This class contents several static methods that can be used in jaxb objects export/import. Includes: convert soft attributes to/from proper jaxb objects get naming map (namespace and prefix) get root tag name get attribute which type is ID get attribute which type is IDREF get referenced tag from DOM node check if the object need to be marshalled firstly

Supported API: true

Extendable: false
  • Method Details

    • getIDTagName

      public static String getIDTagName(String format, String elementName) throws WTException
      get tag name which type is ID for the given format

      Supported API: true
      Parameters:
      format -
      Returns:
      name
      Throws:
      WTException
    • getRefTagName

      public static String getRefTagName(String format, String elementName) throws WTException
      get tag name which type is IDREF for the given format

      Supported API: true
      Parameters:
      format -
      Returns:
      name
      Throws:
      WTException
    • needMarshallFirst

      public static boolean needMarshallFirst(String format, Object o) throws WTException
      check if the jaxb object should be marshalled firstly.

      Supported API: true
      Parameters:
      format -
      o - the jaxb object
      Returns:
      boolean
      Throws:
      WTException