|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.commons.utils.QNameUtils
public class QNameUtils
Provides some utility methods for working with qualified names.
Constructor Summary | |
---|---|
QNameUtils()
|
Method Summary | |
---|---|
static javax.xml.namespace.QName |
findBestMatch(javax.xml.namespace.QName present,
java.util.Collection<javax.xml.namespace.QName> candidates)
Finds the best possible match for a QName in a collection of QName s. |
static java.lang.String |
toString(javax.xml.namespace.QName qName)
Returns a string representation that includes the prefix (if present). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QNameUtils()
Method Detail |
---|
public static java.lang.String toString(javax.xml.namespace.QName qName)
qName
- qualified name, must not be null
null
public static javax.xml.namespace.QName findBestMatch(javax.xml.namespace.QName present, java.util.Collection<javax.xml.namespace.QName> candidates)
QName
in a collection of QName
s.
Performs the following checks in order:
present
- name for which to find the best match, must not be null
candidates
- available candidates, must not be null
null
if no match can be found at all
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |