Class UnmarshalNamespaceContext

  • All Implemented Interfaces:
    UnmarshalNamespaceResolver

    public class UnmarshalNamespaceContext
    extends java.lang.Object
    implements UnmarshalNamespaceResolver
    An UnmarshalNamespaceResolver that delegates all work to a NamespaceContext. This is useful when using XML input from sources such as StAX.
    • 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.
      javax.xml.stream.XMLStreamReader getXmlStreamReader()  
      void pop​(java.lang.String prefix)
      The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.
      void push​(java.lang.String prefix, java.lang.String namespaceURI)
      The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.
      void setXmlStreamReader​(javax.xml.stream.XMLStreamReader xmlStreamReader)  
      • Methods inherited from class java.lang.Object

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

      • UnmarshalNamespaceContext

        public UnmarshalNamespaceContext()
      • UnmarshalNamespaceContext

        public UnmarshalNamespaceContext​(javax.xml.stream.XMLStreamReader anXMLStreamReader)
    • Method Detail

      • push

        public void push​(java.lang.String prefix,
                         java.lang.String namespaceURI)
        The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.
        Specified by:
        push in interface UnmarshalNamespaceResolver
      • pop

        public void pop​(java.lang.String prefix)
        The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.
        Specified by:
        pop in interface UnmarshalNamespaceResolver
      • getXmlStreamReader

        public javax.xml.stream.XMLStreamReader getXmlStreamReader()
      • setXmlStreamReader

        public void setXmlStreamReader​(javax.xml.stream.XMLStreamReader xmlStreamReader)