Here you can find the source of getString(QName qName)
Parameter | Description |
---|---|
qName | a parameter |
public static String getString(QName qName)
//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(); } }