org.apache.axis.types

Class NMTokens

public class NMTokens extends NCName

Custom class for supporting XSD data type NMTokens

Author: Davanum Srinivas

Constructor Summary
NMTokens()
NMTokens(String stValue)
ctor for NMTokens
Method Summary
booleanequals(Object object)
NMTokens can be equal without having identical ordering because they represent a set of references.
inthashCode()
Returns the sum of the hashcodes of the underlying tokens, an operation which is not sensitive to ordering.
voidsetValue(String stValue)
StringtoString()

Constructor Detail

NMTokens

public NMTokens()

NMTokens

public NMTokens(String stValue)
ctor for NMTokens

Throws: IllegalArgumentException will be thrown if validation fails

Method Detail

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.

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.

Returns: an int value

setValue

public void setValue(String stValue)

toString

public String toString()
Copyright B) 2005 Apache Web Services Project. All Rights Reserved.