Class StackUnmarshalNamespaceResolver

  • All Implemented Interfaces:
    UnmarshalNamespaceResolver

    public class StackUnmarshalNamespaceResolver
    extends java.lang.Object
    implements UnmarshalNamespaceResolver
    This is a complete UnmarshalNamespaceResolver implementation. This is useful when using XML input from sources such as SAX.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getNamespaceURI​(java.lang.String prefix)
      Return the namespace URI for the specified prefix at the current scope.
      java.lang.String getPrefix​(java.lang.String namespaceURI)
      Return the prefix for the specified namesapce URI at the current scope.
      java.util.Set<java.lang.String> getPrefixes()
      Return the set of prefixes currently associated with a namespace URI.
      void pop​(java.lang.String prefix)
      Remove the last declared namespace URI binding for this prefix.
      void push​(java.lang.String prefix, java.lang.String namespaceURI)
      Associate a prefix and a namespace URI.
      • Methods inherited from class java.lang.Object

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

      • StackUnmarshalNamespaceResolver

        public StackUnmarshalNamespaceResolver()
    • Method Detail

      • pop

        public void pop​(java.lang.String prefix)
        Description copied from interface: UnmarshalNamespaceResolver
        Remove the last declared namespace URI binding for this prefix. Note this will reveal the previous namespace URI binding for this prefix if there was one.
        Specified by:
        pop in interface UnmarshalNamespaceResolver
      • push

        public void push​(java.lang.String prefix,
                         java.lang.String namespaceURI)
        Description copied from interface: UnmarshalNamespaceResolver
        Associate a prefix and a namespace URI. Note that this will override any previous associations for the specified prefix until a corresponding "pop" call is made for this prefix.
        Specified by:
        push in interface UnmarshalNamespaceResolver