|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.sixdml.excelon.xlnServiceBase
|
+--org.sixdml.excelon.xlnNamespaceAwareService
xlnNamespaceAwareService.java This is the base class for services that perform XPath queries and need to manage relationships between prefixes and namespace URI in these queries. Created: Tue Dec 04 04:27:01 2001
| Field Summary | |
private org.sixdml.SixdmlNamespaceMap |
namespaceMap
This is the table of prefix to namespace mapping used when performing XPath queries against the database. |
| Fields inherited from class org.sixdml.excelon.xlnServiceBase |
collection, properties |
| Fields inherited from interface org.sixdml.SixdmlConstants |
SIXDML_NS, SIXDML_VERSION |
| Constructor Summary | |
xlnNamespaceAwareService()
|
|
| Method Summary | |
void |
addNamespaceMapping(String prefix,
URI namespaceURI)
Add a mapping between a given prefix and a namespace to the service's internal namespace map. |
void |
clearNamespaceMappings()
Clear all namespace mappings in the service's internal namespace map. |
URI |
getNamespaceMapping(String prefix)
Obtain the namespace URI mapped to a particular prefix. |
void |
removeNamespaceMapping(String prefix)
Remove a mapping between a given prefix and a namespace to the service's internal namespace map. |
void |
setNamespaceMap(org.sixdml.SixdmlNamespaceMap nsMap)
Set the SixdmlNamespaceMap used by this class to map prefixes to namespace URIs used in XPath queries. |
| Methods inherited from class org.sixdml.excelon.xlnServiceBase |
getName, getProperty, getVersion, setCollection, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private org.sixdml.SixdmlNamespaceMap namespaceMap
| Constructor Detail |
public xlnNamespaceAwareService()
| Method Detail |
public void setNamespaceMap(org.sixdml.SixdmlNamespaceMap nsMap)
throws XMLDBException
nsMap - the new namespace map to use.
XMLDBException - if anything goes wrong.ErrorMessages.CANT_MAP_PREFIX_TO_URI
public void addNamespaceMapping(String prefix,
URI namespaceURI)
throws XMLDBException
prefix - key with which the specified namespace URI is associated.namespaceURI - value to be associated with the specified prefix.
XMLDBException - if anything goes wrong.ErrorMessages.CANT_MAP_PREFIX_TO_URI
public void removeNamespaceMapping(String prefix)
throws XMLDBException
prefix - key with which the specified namespace URI is associated.
XMLDBException - if anything goes wrong.ErrorMessages.CANT_MAP_PREFIX_TO_URI
public void clearNamespaceMappings()
throws XMLDBException
XMLDBException - if anything goes wrong. UNIMPLEMENTED.ErrorMessages.CANT_MAP_PREFIX_TO_URI
public URI getNamespaceMapping(String prefix)
throws XMLDBException
prefix - the prefix whose namespace is being sought.
XMLDBExceptionErrorMessages.CANT_MAP_PREFIX_TO_URI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||