Class NamespaceContext

    • Constructor Detail

      • NamespaceContext

        public NamespaceContext​(Map prefixToUriMap)
      • NamespaceContext

        public NamespaceContext​(TypeStore typeStore)
      • NamespaceContext

        public NamespaceContext​(XmlObject xmlObject)
      • NamespaceContext

        public NamespaceContext​(StartElement start)
      • NamespaceContext

        public NamespaceContext​(PrefixResolver resolver)
    • Method Detail

      • clearThreadLocals

        public static void clearThreadLocals()
      • pop

        public static void pop()
      • getNamespaceForPrefix

        public String getNamespaceForPrefix​(String prefix)
        Description copied from interface: PrefixResolver
        Caled 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:
        getNamespaceForPrefix in interface PrefixResolver