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

public Class StackUnmarshalNamespaceResolver

extends Object
implements UnmarshalNamespaceResolver
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.internal.oxm.record.namespaces.UnmarshalNamespaceResolver
Imports
java.util.ArrayList, .HashMap, .List, .Map, .Set, org.eclipse.persistence.internal.oxm.Constants

This is a complete UnmarshalNamespaceResolver implementation. This is useful when using XML input from sources such as SAX.

Field Summary

Modifier and TypeField and Description
private Map<String, List<String>>
private Map<String, List<String>>

Constructor Summary

AccessConstructor and Description
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 void
pop(String prefix)

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

Remove the last declared namespace URI binding for this prefix.
public void
push(String prefix, String namespaceURI)

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

Associate a prefix and a namespace URI.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

namespaceMapback to summary
private Map<String, List<String>> namespaceMap
uriToPrefixMapback to summary
private Map<String, List<String>> uriToPrefixMap

Constructor Detail

StackUnmarshalNamespaceResolverback to summary
public StackUnmarshalNamespaceResolver()

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
popback to summary
public void pop(String prefix)

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

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

Remove the last declared namespace URI binding for this prefix. Note this will reveal the previous namespace URI binding for this prefix if there was one.

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

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

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

Associate a prefix and a namespace URI. Note that this will override any previous associations for the specified prefix until a corresponding "pop" call is made for this prefix.

Annotations
@Override