Module org.eclipse.persistence.core
Class StackUnmarshalNamespaceResolver
- java.lang.Object
-
- org.eclipse.persistence.internal.oxm.record.namespaces.StackUnmarshalNamespaceResolver
-
- All Implemented Interfaces:
UnmarshalNamespaceResolver
public class StackUnmarshalNamespaceResolver extends Object implements UnmarshalNamespaceResolver
This is a complete UnmarshalNamespaceResolver implementation. This is useful when using XML input from sources such as SAX.
-
-
Constructor Summary
Constructors Constructor Description StackUnmarshalNamespaceResolver()
-
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.voidpop(String prefix)Remove the last declared namespace URI binding for this prefix.voidpush(String prefix, String namespaceURI)Associate a prefix and a namespace URI.
-
-
-
Method Detail
-
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
-
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
-
pop
public void pop(String prefix)
Description copied from interface:UnmarshalNamespaceResolverRemove 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.- Specified by:
popin interfaceUnmarshalNamespaceResolver
-
push
public void push(String prefix, String namespaceURI)
Description copied from interface:UnmarshalNamespaceResolverAssociate 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.- Specified by:
pushin 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
-
-