Class XJdfNamespaceMapper


  • public class XJdfNamespaceMapper
    extends org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
    XJDF Namespace Prefix Mapper for organizing namespace prefixes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPreferredPrefix​(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)  
      • Methods inherited from class org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper

        getContextualNamespaceDecls, getPreDeclaredNamespaceUris, getPreDeclaredNamespaceUris2
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XJdfNamespaceMapper

        public XJdfNamespaceMapper()
        Default constructor.
      • XJdfNamespaceMapper

        public XJdfNamespaceMapper​(java.lang.String nsDefaultNamespace)
        Custom constructor.
        Accepting a String object as place holder for default namespace. This place holder later can be replaced by empty string.
    • Method Detail

      • getPreferredPrefix

        public java.lang.String getPreferredPrefix​(java.lang.String namespaceUri,
                                                   java.lang.String suggestion,
                                                   boolean requirePrefix)
        Specified by:
        getPreferredPrefix in class org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
        See Also:
        com.sun.xml.bind.marshaller.NamespacePrefixMapper#getPreferredPrefix(java.lang.String, java.lang.String, boolean)