Class JAXBNamespacePrefixMapper

java.lang.Object
org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
com.helger.jaxb.JAXBNamespacePrefixMapper

public class JAXBNamespacePrefixMapper extends org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
A special namespace prefix mapper for the Jakarta XML Binding implementation.
Important note: this class works only, if the com.sun.xml.bind:jaxb-impl artifact is in your classpath, because this class extends org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper which is not available in the other JAXB implementations.
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getPreferredPrefix

      @Nullable public String getPreferredPrefix(@Nonnull String sNamespaceUri, @Nullable String sSuggestion, boolean bRequirePrefix)
      Specified by:
      getPreferredPrefix in class org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
    • toString

      public String toString()
      Overrides:
      toString in class Object