org.apache.axis.types

Class NMTokens

Implemented Interfaces:
java.io.Serializable

public class NMTokens
extends NCName

Custom class for supporting XSD data type NMTokens

Author:
Davanum Srinivas

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.axis.types.NCName

isValid, setValue

Methods inherited from class org.apache.axis.types.Name

isValid, setValue

Methods inherited from class org.apache.axis.types.Token

isValid, setValue

Methods inherited from class org.apache.axis.types.NormalizedString

equals, hashCode, isValid, setValue, toString

Constructor Details

NMTokens

public NMTokens()


NMTokens

public NMTokens(String stValue)
            throws IllegalArgumentException
ctor for NMTokens

Method Details

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 interface 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 interface NormalizedString

Returns:
an int value


setValue

public void setValue(String stValue)
validates the data and sets the value for the object.
Overrides:
setValue in interface NCName

Parameters:
stValue - String value


toString

public String toString()
Overrides:
toString in interface NormalizedString


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.