Package org.apache.axis.types
Class NMTokens
java.lang.Object
org.apache.axis.types.NormalizedString
org.apache.axis.types.Token
org.apache.axis.types.Name
org.apache.axis.types.NCName
org.apache.axis.types.NMTokens
- All Implemented Interfaces:
Serializable
Custom class for supporting XSD data type NMTokens
- Author:
- Davanum Srinivas <dims@yahoo.com>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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
validates the data and sets the value for the object.toString()
-
Constructor Details
-
NMTokens
public NMTokens() -
NMTokens
ctor for NMTokens- Throws:
IllegalArgumentException
- will be thrown if validation fails
-
-
Method Details
-
setValue
Description copied from class:NCName
validates the data and sets the value for the object. -
toString
- Overrides:
toString
in classNormalizedString
-
equals
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 classNormalizedString
- Parameters:
object
- anObject
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 classNormalizedString
- Returns:
- an
int
value
-