Top Description Fields Constructors Methods
org.eclipse.persistence.internal.oxm.record.namespaces

public Class UnmarshalNamespaceContext

extends Object
implements UnmarshalNamespaceResolver
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver
Imports
java.util.HashSet, .Set, javax.xml.stream.XMLStreamReader, org.eclipse.persistence.internal.oxm.Constants

An UnmarshalNamespaceResolver that delegates all work to a NamespaceContext. This is useful when using XML input from sources such as StAX.

Field Summary

Modifier and TypeField and Description
private Set<String>
private XMLStreamReader

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
getNamespaceURI(String prefix)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getNamespaceURI.

Return the namespace URI for the specified prefix at the current scope.
public String
getPrefix(String namespaceURI)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getPrefix.

Return the prefix for the specified namesapce URI at the current scope.
public Set<String>
getPrefixes()

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getPrefixes.

Return the set of prefixes currently associated with a namespace URI.
public XMLStreamReader
public void
pop(String prefix)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.pop.

The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.
public void
push(String prefix, String namespaceURI)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.push.

The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

prefixesback to summary
private Set<String> prefixes
xmlStreamReaderback to summary
private XMLStreamReader xmlStreamReader

Constructor Detail

UnmarshalNamespaceContextback to summary
public UnmarshalNamespaceContext()
UnmarshalNamespaceContextback to summary
public UnmarshalNamespaceContext(XMLStreamReader anXMLStreamReader)

Method Detail

getNamespaceURIback to summary
public String getNamespaceURI(String prefix)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getNamespaceURI.

Doc from org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getNamespaceURI.

Return the namespace URI for the specified prefix at the current scope.

Annotations
@Override
getPrefixback to summary
public String getPrefix(String namespaceURI)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getPrefix.

Doc from org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getPrefix.

Return the prefix for the specified namesapce URI at the current scope.

Annotations
@Override
getPrefixesback to summary
public Set<String> getPrefixes()

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getPrefixes.

Doc from org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.getPrefixes.

Return the set of prefixes currently associated with a namespace URI.

Annotations
@Override
getXmlStreamReaderback to summary
public XMLStreamReader getXmlStreamReader()
popback to summary
public void pop(String prefix)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.pop.

The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.

Annotations
@Override
pushback to summary
public void push(String prefix, String namespaceURI)

Implements org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver.push.

The underlying NamespaceContext is responsible for maintaining the appropriate prefix/URI associations.

Annotations
@Override
setXmlStreamReaderback to summary
public void setXmlStreamReader(XMLStreamReader xmlStreamReader)