org.xins.client
Class DataElement.QualifiedName

java.lang.Object
  extended byorg.xins.client.DataElement.QualifiedName
Enclosing class:
DataElement

public static final class DataElement.QualifiedName
extends Object

Qualified name for an element or attribute. This is a combination of an optional namespace URI and a mandatory local name.

Since:
XINS 1.1.0
Author:
Ernst de Haan

Constructor Summary
DataElement.QualifiedName(String namespaceURI, String localName)
          Constructs a new QualifiedName with the specified namespace and local name.
 
Method Summary
 boolean equals(Object obj)
          Compares this object with the specified object for equality.
 String getLocalName()
          Gets the local name.
 String getNamespaceURI()
          Gets the namespace URI.
 int hashCode()
          Returns the hash code value for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataElement.QualifiedName

public DataElement.QualifiedName(String namespaceURI,
                                 String localName)
                          throws IllegalArgumentException
Constructs a new QualifiedName with the specified namespace and local name.

Parameters:
namespaceURI - the namespace URI for the element, can be null; an empty string is equivalent to null.
localName - the local name of the element, cannot be null.
Throws:
IllegalArgumentException - if localName == null.
Method Detail

hashCode

public int hashCode()
Returns the hash code value for this object.

Returns:
the hash code value.

equals

public boolean equals(Object obj)
Compares this object with the specified object for equality.

Parameters:
obj - the object to compare with, or null.
Returns:
true if this object and the argument are considered equal, false otherwise.

getNamespaceURI

public String getNamespaceURI()
Gets the namespace URI.

Returns:
the namespace URI, can be null.

getLocalName

public String getLocalName()
Gets the local name.

Returns:
the local name, never null.


See http://www.xins.org/.