Class NMTokens
- java.lang.Object
-
- org.apache.axis2.databinding.types.NormalizedString
-
- org.apache.axis2.databinding.types.Token
-
- org.apache.axis2.databinding.types.Name
-
- org.apache.axis2.databinding.types.NCName
-
- 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)validates the data and sets the value for the object.StringtoString()
-
-
-
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:NCNamevalidates the data and sets the value for the object.
-
toString
public String toString()
- Overrides:
toStringin classNormalizedString
-
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:
equalsin classNormalizedString- Parameters:
object- anObjectvalue- Returns:
- a
booleanvalue
-
hashCode
public int hashCode()
Returns the sum of the hashcodes of the underlying tokens, an operation which is not sensitive to ordering.- Overrides:
hashCodein classNormalizedString- Returns:
- an
intvalue
-
-