List of utility methods to do XML QName Convert
QName | toPid(final QName processType, final long version) to Pid return new QName(processType.getNamespaceURI(), processType.getLocalPart() + "-" + version); |
String | toQualifiedName(final QName qname) Return a qualified representation of the qname. return toQualifiedName(qname.getPrefix(), qname.getLocalPart());
|
String | toQualifiedName(QName qName) Convert a QName to a qualified name, as used by DOM and SAX.
String prefix = getPrefix(qName); if (!StringUtils.hasLength(prefix)) { return qName.getLocalPart(); } else { return prefix + ":" + qName.getLocalPart(); |
String | toString(final QName qname) to String final String prefix = qname.getPrefix(); final String name = qname.getLocalPart(); if (prefix == null || prefix.length() == 0) return name; return prefix + ':' + name; |
String | toString(QName qName) Returns a string representation that includes the prefix (if present). if (qName.getPrefix().equals(DEFAULT_NS_PREFIX)) { return qName.toString(); return qName.getPrefix() + ":" + qName.toString(); |
URI | toURI(QName name) to URI return URI.create(name.getNamespaceURI() + name.getLocalPart());
|