Java XML QName getString(QName qName)

Here you can find the source of getString(QName qName)

Description

Get the full string of qname

License

Apache License

Parameter

Parameter Description
qName a parameter

Return

the string of namespaceUri + localtPart + prefix

Declaration

public static String getString(QName qName) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.xml.namespace.QName;

public class Main {
    /**/*from   w w  w .j  a v  a2  s.  c o m*/
     * Get the full string of qname
     * 
     * @param qName
     * @return the string of namespaceUri + localtPart + prefix
     */
    public static String getString(QName qName) {
        if (qName == null)
            throw new NullPointerException("argument is null");

        StringBuffer sb = new StringBuffer();
        sb.append("NamespaceUri:" + qName.getNamespaceURI() + " ");
        sb.append("LocalPart:" + qName.getLocalPart() + " ");
        sb.append("Prefix:" + qName.getPrefix());
        return sb.toString();
    }
}

Related

  1. getPartQName(String opName, String suffix, String partName)
  2. getPort(Service service, Class seiClass, QName port)
  3. getPrefix(QName qName)
  4. getQualifiedName(QName qName)
  5. getServiceCode(SOAPMessage soap, QName requestElementQName)
  6. getStringForQName(QName qname, Element e)
  7. getThreddsCatalogAttributeQName(String localName)
  8. getTypeFromQName(final QName name)
  9. getTypeQName(Class type)