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
-
Constructor Summary
ConstructorDescriptionUniversalNamespaceResolver(Document document)
This constructor stores the source document to search the namespaces in it. -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceURI(String prefix)
The lookup for the namespace uris is delegated to the stored document.This method is not needed in this context, but can be implemented in a similar way.getPrefixes(String namespaceURI)
-
Constructor Details
-
UniversalNamespaceResolver
This constructor stores the source document to search the namespaces in it.- Parameters:
document
- source document
-
-
Method Details
-
getNamespaceURI
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
This method is not needed in this context, but can be implemented in a similar way.- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-