Package org.apache.commons.jxpath.ri

# Class QName

java.lang.Object
org.apache.commons.jxpath.ri.QName

All Implemented Interfaces:
  `Serializable`

public class QName extends Object implements Serializable
A qualified name: a combination of an optional namespace prefix and an local name.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `QName(String qualifiedName)`
  Constructs a new QName.
  `QName(String prefix, String localName)`
  Constructs a new QName.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object object)`
  `String`
  `getName()`
  Gets the local name.
  `String`
  `getPrefix()`
  Gets the prefix of this QName.
  `int`
  `hashCode()`
  `String`
  `toString()`

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

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### QName

    public QName(String qualifiedName)
    Constructs a new QName.
    Parameters:
      `qualifiedName` - value

  - ### QName

    public QName(String prefix, String localName)
    Constructs a new QName.
    Parameters:
      `prefix` - ns
      `localName` - String

- ## Method Details

  - ### equals

    public boolean equals(Object object)
    Overrides:
      `equals` in class `Object`

  - ### getName

    public String getName()
    Gets the local name.
    Returns:
      String

  - ### getPrefix

    public String getPrefix()
    Gets the prefix of this QName.
    Returns:
      String

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`