org.apache.axis.types

Class IDRefs

Implemented Interfaces:
java.io.Serializable

public class IDRefs
extends NCName

Custom class for supporting XSD data type IDRefs
Author:
Davanum Srinivas
See Also:
XML Schema 3.3.10 IDREFS, Serialized Form

Constructor Summary

IDRefs()
IDRefs(String stValue)
ctor for IDRefs

Method Summary

boolean
equals(Object object)
IDREFs 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 idrefs, an operation which is not sensitive to ordering.
void
setValue(String stValue)
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

IDRefs

public IDRefs()

IDRefs

public IDRefs(String stValue)
            throws IllegalArgumentException
ctor for IDRefs

Method Details

equals

public boolean equals(Object object)
IDREFs 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 idrefs, an operation which is not sensitive to ordering.
Overrides:
hashCode in interface NormalizedString
Returns:
an int value

setValue

public void setValue(String stValue)
Overrides:
setValue in interface NCName

toString

public String toString()
Overrides:
toString in interface NormalizedString

Copyright © 2005 Apache Web Services Project. All Rights Reserved.