org.netbeans.modules.bpel.model.api.support
Class BpelXPathNamespaceContext

java.lang.Object
  extended by org.netbeans.modules.bpel.model.api.support.BpelXPathNamespaceContext
All Implemented Interfaces:
javax.xml.namespace.NamespaceContext, org.netbeans.modules.xml.xpath.ext.schema.ExNamespaceContext

public class BpelXPathNamespaceContext
extends java.lang.Object
implements org.netbeans.modules.xml.xpath.ext.schema.ExNamespaceContext

This namespace context is a wrapper. It delegates almost all execution to the BPEL Namespace context. The only case which it processes self is the call of the getNamespaceURI() with the empty prefix. The BPEL namespace context returns a default namespace in such case. But this class returns NULL namespace. The XPath expressions in the BPEL don't use the default namespace!

Author:
nk160297

Constructor Summary
BpelXPathNamespaceContext(org.netbeans.modules.xml.xpath.ext.schema.ExNamespaceContext parentNsContext)
           
 
Method Summary
 java.lang.String addNamespace(java.lang.String uri)
           
 void addNamespace(java.lang.String prefix, java.lang.String uri)
           
 java.lang.String getNamespaceURI(java.lang.String prefix)
           
 java.lang.String getPrefix(java.lang.String namespaceURI)
           
 java.util.Iterator<java.lang.String> getPrefixes()
           
 java.util.Iterator getPrefixes(java.lang.String namespaceURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BpelXPathNamespaceContext

public BpelXPathNamespaceContext(org.netbeans.modules.xml.xpath.ext.schema.ExNamespaceContext parentNsContext)
Method Detail

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String prefix)
Specified by:
getNamespaceURI in interface javax.xml.namespace.NamespaceContext

getPrefix

public java.lang.String getPrefix(java.lang.String namespaceURI)
Specified by:
getPrefix in interface javax.xml.namespace.NamespaceContext

getPrefixes

public java.util.Iterator getPrefixes(java.lang.String namespaceURI)
Specified by:
getPrefixes in interface javax.xml.namespace.NamespaceContext

getPrefixes

public java.util.Iterator<java.lang.String> getPrefixes()
Specified by:
getPrefixes in interface org.netbeans.modules.xml.xpath.ext.schema.ExNamespaceContext

addNamespace

public java.lang.String addNamespace(java.lang.String uri)
                              throws org.netbeans.modules.xml.xpath.ext.schema.InvalidNamespaceException
Specified by:
addNamespace in interface org.netbeans.modules.xml.xpath.ext.schema.ExNamespaceContext
Throws:
org.netbeans.modules.xml.xpath.ext.schema.InvalidNamespaceException

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String uri)
                  throws org.netbeans.modules.xml.xpath.ext.schema.InvalidNamespaceException
Specified by:
addNamespace in interface org.netbeans.modules.xml.xpath.ext.schema.ExNamespaceContext
Throws:
org.netbeans.modules.xml.xpath.ext.schema.InvalidNamespaceException