org.apache.ode.utils

## Class QNameUtils

- java.lang.Object
- - org.apache.ode.utils.QNameUtils

-     public class QNameUtils
      extends java.lang.Object

  Utility methods for dealing with XML qualified names (`QName`s).

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `fromQName(javax.xml.namespace.QName qname)` Create a string representation from a `QName`.
    `static javax.xml.namespace.QName` | `toQName(java.lang.String s)` Create a `QName` object from its stringified representation.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### fromQName

          public static java.lang.String fromQName(javax.xml.namespace.QName qname)

      Create a string representation from a `QName`. The string will have the form `{URI}localpart`.
      Parameters:
        `qname` - a `QName`.
      Returns:
        stringified representation

    - #### toQName

          public static javax.xml.namespace.QName toQName(java.lang.String s)

      Create a `QName` object from its stringified representation.
      Parameters:
        `s` - stringified representation
      Returns:
        de-stringified `QName`
      Throws:
        `java.lang.IllegalArgumentException` - if the given string is not a valid stringified `QName`.
      See Also:
        `fromQName(javax.xml.namespace.QName)`