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.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)
-
-
-
Method Detail
-
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
Description copied from interface:UnmarshalNamespaceResolver
Return the namespace URI for the specified prefix at the current scope.- Specified by:
getNamespaceURI
in interfaceUnmarshalNamespaceResolver
-
getPrefix
public java.lang.String getPrefix(java.lang.String namespaceURI)
Description copied from interface:UnmarshalNamespaceResolver
Return the prefix for the specified namesapce URI at the current scope.- Specified by:
getPrefix
in 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:
push
in interfaceUnmarshalNamespaceResolver
-
pop
public void pop(java.lang.String prefix)
The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.- Specified by:
pop
in interfaceUnmarshalNamespaceResolver
-
getPrefixes
public java.util.Set<java.lang.String> getPrefixes()
Description copied from interface:UnmarshalNamespaceResolver
Return the set of prefixes currently associated with a namespace URI.- Specified by:
getPrefixes
in interfaceUnmarshalNamespaceResolver
-
getXmlStreamReader
public javax.xml.stream.XMLStreamReader getXmlStreamReader()
-
setXmlStreamReader
public void setXmlStreamReader(javax.xml.stream.XMLStreamReader xmlStreamReader)
-
-