Class PrefixMapperNamespaceResolver

  • All Implemented Interfaces:
    XMLNamespaceResolver

    public class PrefixMapperNamespaceResolver
    extends NamespaceResolver
    INTERNAL:

    Purpose: Provides an implementation of NamespaceResolver that wraps a NamespacePrefixMapper. This NamespaceResolver initializes itself from the prefixmapper and the descriptor's namespace resolver. It's set on a marshal record, when the XMLMarshaller is using a custom namespace mapper.

    • Method Detail

      • resolveNamespaceURI

        public String resolveNamespaceURI​(String uri)
        Description copied from class: NamespaceResolver
        Return the namespace prefix associated with a namespace URI.
        Overrides:
        resolveNamespaceURI in class NamespaceResolver
        Parameters:
        uri - A namespace URI.
        Returns:
        The prefix associated with the namespace URI.
      • put

        public void put​(String prefix,
                        String uri)
        Description copied from class: NamespaceResolver
        Adds a namespace to the collection of namespaces on the NamespaceResolver
        Overrides:
        put in class NamespaceResolver
        Parameters:
        prefix - The prefix for a namespace
        uri - The namespace URI associated with the specified prefix