Class FUN_XPath.UniversalNamespaceResolver
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.xml.FUN_XPath.UniversalNamespaceResolver
-
- All Implemented Interfaces:
NamespaceContext
- Enclosing class:
- FUN_XPath
public static class FUN_XPath.UniversalNamespaceResolver extends Object implements NamespaceContext
-
-
Constructor Summary
Constructors Constructor Description UniversalNamespaceResolver(Document document)
This constructor stores the source document to search the namespaces in it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNamespaceURI(String prefix)
The lookup for the namespace uris is delegated to the stored document.String
getPrefix(String namespaceURI)
This method is not needed in this context, but can be implemented in a similar way.Iterator
getPrefixes(String namespaceURI)
-
-
-
Constructor Detail
-
UniversalNamespaceResolver
public UniversalNamespaceResolver(Document document)
This constructor stores the source document to search the namespaces in it.- Parameters:
document
- source document
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI(String prefix)
The lookup for the namespace uris is delegated to the stored document.- Specified by:
getNamespaceURI
in interfaceNamespaceContext
- Parameters:
prefix
- to search for- Returns:
- uri
-
getPrefix
public String getPrefix(String namespaceURI)
This method is not needed in this context, but can be implemented in a similar way.- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
public Iterator getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
-