org.apache.axis2.databinding.types
Class NMTokens

java.lang.Object
  extended by org.apache.axis2.databinding.types.NormalizedString
      extended by org.apache.axis2.databinding.types.Token
          extended by org.apache.axis2.databinding.types.Name
              extended by org.apache.axis2.databinding.types.NCName
                  extended by org.apache.axis2.databinding.types.NMTokens
All Implemented Interfaces:
Serializable

public class NMTokens
extends NCName

Custom class for supporting XSD data type NMTokens

See Also:
Serialized Form

Constructor Summary
NMTokens()
           
NMTokens(String stValue)
          ctor for NMTokens
 
Method Summary
 boolean equals(Object object)
          NMTokens can be equal without having identical ordering because they represent a set of references.
 int hashCode()
          Returns the sum of the hashcodes of the underlying tokens, an operation which is not sensitive to ordering.
 void setValue(String stValue)
          validates the data and sets the value for the object.
 String toString()
           
 
Methods inherited from class org.apache.axis2.databinding.types.NCName
isValid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NMTokens

public NMTokens()

NMTokens

public NMTokens(String stValue)
         throws IllegalArgumentException
ctor for NMTokens

Throws:
IllegalArgumentException - will be thrown if validation fails
Method Detail

setValue

public void setValue(String stValue)
Description copied from class: NCName
validates the data and sets the value for the object.

Overrides:
setValue in class NCName
Parameters:
stValue - String value

toString

public String toString()
Overrides:
toString in class NormalizedString

equals

public boolean equals(Object object)
NMTokens can be equal without having identical ordering because they represent a set of references. Hence we have to compare values here as a set, not a list.

Overrides:
equals in class NormalizedString
Parameters:
object - an Object value
Returns:
a boolean value

hashCode

public int hashCode()
Returns the sum of the hashcodes of the underlying tokens, an operation which is not sensitive to ordering.

Overrides:
hashCode in class NormalizedString
Returns:
an int value


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.