Class PDSNamespacePrefixMapper


  • public class PDSNamespacePrefixMapper
    extends org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper
    Class to hold namespace information set in a product label.
    Author:
    mcayanan
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String FILE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addNamespaceURIMapping​(java.lang.String prefix, java.lang.String URI)
      Adds a namespace to the map.
      java.lang.String getDefaultNamespaceURI()  
      java.lang.String getPreferredPrefix​(java.lang.String namespaceUri, java.lang.String suggestion, boolean requirePrefix)  
      void setDefaultNamespaceURI​(java.lang.String defaultNamespaceURI)
      Sets the default namespace uri.
      • 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

      • PDSNamespacePrefixMapper

        public PDSNamespacePrefixMapper()
                                 throws java.io.IOException
        Constructor.
        Throws:
        java.io.IOException - If there was an error loading the default namepsaces.
    • Method Detail

      • setDefaultNamespaceURI

        public void setDefaultNamespaceURI​(java.lang.String defaultNamespaceURI)
        Sets the default namespace uri.
        Parameters:
        defaultNamespaceURI - namespace uri.
      • getDefaultNamespaceURI

        public java.lang.String getDefaultNamespaceURI()
        Returns:
        Gets the default namespace uri.
      • addNamespaceURIMapping

        public void addNamespaceURIMapping​(java.lang.String prefix,
                                           java.lang.String URI)
        Adds a namespace to the map.
        Parameters:
        prefix - The namespace prefix.
        URI - The namespace uri.
      • 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