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