org.apache.ws.jaxme
Class WildcardAttribute

java.lang.Object
  extended by org.apache.ws.jaxme.WildcardAttribute

public class WildcardAttribute
extends java.lang.Object

Wildcard attributes (as specified by xs:anyAttribute) are stored in a set, the set elements being instances of WildcardAttribute.

Author:
Jochen Wiedmann

Constructor Summary
WildcardAttribute(QName pName, java.lang.String pValue)
          Creates a new instance of WildcardAttribute with the given name and value.
 
Method Summary
 boolean equals(java.lang.Object pOther)
          Returns true, if the object pOther is an instance of WildcardAttribute and pOther.getName().equals(getName()).
 QName getName()
          Returns the attributes name.
 java.lang.String getValue()
          Returns the attributes value.
 int hashCode()
          Returns getName().hashCode().
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WildcardAttribute

public WildcardAttribute(QName pName,
                         java.lang.String pValue)

Creates a new instance of WildcardAttribute with the given name and value.

Throws:
java.lang.NullPointerException - Either of the arguments is null.
Method Detail

getName

public QName getName()

Returns the attributes name.


getValue

public java.lang.String getValue()

Returns the attributes value.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()

Returns getName().hashCode().

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object pOther)

Returns true, if the object pOther is an instance of WildcardAttribute and pOther.getName().equals(getName()).

Overrides:
equals in class java.lang.Object