Class UnmarshalNamespaceContext
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.namespaces.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.
-
-
Constructor Summary
Constructors Constructor Description UnmarshalNamespaceContext()UnmarshalNamespaceContext(javax.xml.stream.XMLStreamReader anXMLStreamReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNamespaceURI(java.lang.String prefix)Return the namespace URI for the specified prefix at the current scope.java.lang.StringgetPrefix(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.XMLStreamReadergetXmlStreamReader()voidpop(java.lang.String prefix)The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.voidpush(java.lang.String prefix, java.lang.String namespaceURI)The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.voidsetXmlStreamReader(javax.xml.stream.XMLStreamReader xmlStreamReader)
-
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
Description copied from interface:UnmarshalNamespaceResolverReturn the namespace URI for the specified prefix at the current scope.- Specified by:
getNamespaceURIin interfaceUnmarshalNamespaceResolver
-
getPrefix
public java.lang.String getPrefix(java.lang.String namespaceURI)
Description copied from interface:UnmarshalNamespaceResolverReturn the prefix for the specified namesapce URI at the current scope.- Specified by:
getPrefixin interfaceUnmarshalNamespaceResolver
-
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:
pushin interfaceUnmarshalNamespaceResolver
-
pop
public void pop(java.lang.String prefix)
The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.- Specified by:
popin interfaceUnmarshalNamespaceResolver
-
getPrefixes
public java.util.Set<java.lang.String> getPrefixes()
Description copied from interface:UnmarshalNamespaceResolverReturn the set of prefixes currently associated with a namespace URI.- Specified by:
getPrefixesin interfaceUnmarshalNamespaceResolver
-
getXmlStreamReader
public javax.xml.stream.XMLStreamReader getXmlStreamReader()
-
setXmlStreamReader
public void setXmlStreamReader(javax.xml.stream.XMLStreamReader xmlStreamReader)
-
-