Class IDRefs
- 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.IDRefs
-
- All Implemented Interfaces:
Serializable
public class IDRefs extends NCName
Custom class for supporting XSD data type IDRefs- See Also:
- XML Schema 3.3.10 IDREFS, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
validates the data and sets the value for the object.String
toString()
-
-
-
Constructor Detail
-
IDRefs
public IDRefs()
-
IDRefs
public IDRefs(String stValue) throws IllegalArgumentException
ctor for IDRefs- Throws:
IllegalArgumentException
- will be thrown if validation fails
-
-
Method Detail
-
setValue
public void setValue(String stValue)
Description copied from class:NCName
validates the data and sets the value for the object.
-
toString
public String toString()
- Overrides:
toString
in classNormalizedString
-
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 classNormalizedString
- Parameters:
object
- anObject
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 classNormalizedString
- Returns:
- an
int
value
-
-