Package org.apache.xmlbeans.impl.values
Class NamespaceContext
java.lang.Object
org.apache.xmlbeans.impl.values.NamespaceContext
- All Implemented Interfaces:
PrefixResolver
public class NamespaceContext extends Object implements PrefixResolver
-
Constructor Summary
Constructors Constructor Description NamespaceContext(Map prefixToUriMap)NamespaceContext(PrefixResolver resolver)NamespaceContext(TypeStore typeStore)NamespaceContext(StartElement start)NamespaceContext(XmlObject xmlObject) -
Method Summary
Modifier and Type Method Description static voidclearThreadLocals()static PrefixResolvergetCurrent()StringgetNamespaceForPrefix(String prefix)Caled when the user has a prefix and needs to look up the corresponding namespace URI.static voidpop()static voidpush(NamespaceContext next)
-
Constructor Details
-
Method Details
-
clearThreadLocals
public static void clearThreadLocals() -
push
-
pop
public static void pop() -
getCurrent
-
getNamespaceForPrefix
Description copied from interface:PrefixResolverCaled when the user has a prefix and needs to look up the corresponding namespace URI. If the prefix is not defined in this context, then this method may return null. The no-namespace is represented by the empty string return result. If the prefix is null or "", then the default namespace is being requested. To conform with the XML spec, the default namespace will return the no-namespace ("") if it is not mapped.- Specified by:
getNamespaceForPrefixin interfacePrefixResolver
-