edu.uga.cs.lsdis.sawsdl.impl.util
Class QNameUtils

java.lang.Object
  extended by edu.uga.cs.lsdis.sawsdl.impl.util.QNameUtils

public class QNameUtils
extends java.lang.Object

Author:
: Ajith Ranabahu, : Zixin Wu, : Karthik Gomadam, : Doug Brewer

Constructor Summary
QNameUtils()
           
 
Method Summary
static javax.xml.namespace.QName generateQName(java.lang.String qNameAsString)
          Parse a string, return a QName.
static javax.xml.namespace.QName generateQName(java.lang.String qNameAsString, Definition wsdlDef)
          Parse a string, return a QName.
static javax.xml.namespace.QName getQName(java.lang.String prefixedValue, org.w3c.dom.Element contextEl)
           
static boolean matches(javax.xml.namespace.QName qname, org.w3c.dom.Node node)
           
static javax.xml.namespace.QName newQName(org.w3c.dom.Node node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QNameUtils

public QNameUtils()
Method Detail

matches

public static boolean matches(javax.xml.namespace.QName qname,
                              org.w3c.dom.Node node)

newQName

public static javax.xml.namespace.QName newQName(org.w3c.dom.Node node)

getQName

public static javax.xml.namespace.QName getQName(java.lang.String prefixedValue,
                                                 org.w3c.dom.Element contextEl)
                                          throws WSDLSException
Throws:
WSDLSException

generateQName

public static javax.xml.namespace.QName generateQName(java.lang.String qNameAsString)
Parse a string, return a QName. The String can be only in the form of "{namespace}localpart"

Parameters:
qNameAsString -
Returns:
A QName by parsing the given string.

generateQName

public static javax.xml.namespace.QName generateQName(java.lang.String qNameAsString,
                                                      Definition wsdlDef)
Parse a string, return a QName. The String may be in the form of "prefix:localpart" or "{namespace}localpart"

Parameters:
qNameAsString -
wsdlDef - Wsdl definition for the purpose of getting URI from prefix, and vice versa.
Returns:
A QName by paring the given string.


Copyright © 2007. All Rights Reserved.