org.apache.axis2.databinding.types
Class Id
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.Id
- All Implemented Interfaces:
- java.io.Serializable
public class Id
- extends NCName
Custom class for supporting XSD data type ID The base type of Id is NCName.
- See Also:
- XML Schema 3.3.8,
Serialized Form
Constructor Summary |
Id()
|
Id(java.lang.String stValue)
Constructor for Id. |
Method Summary |
static boolean |
isValid(java.lang.String stValue)
Validates the value against the xsd definition. |
void |
setValue(java.lang.String stValue)
Validates the data and sets the value for the object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Id
public Id()
Id
public Id(java.lang.String stValue)
throws java.lang.IllegalArgumentException
- Constructor for Id.
- Throws:
java.lang.IllegalArgumentException
- will be thrown if validation fails
setValue
public void setValue(java.lang.String stValue)
throws java.lang.IllegalArgumentException
- Validates the data and sets the value for the object.
- Overrides:
setValue
in class NCName
- Parameters:
stValue
- String value
- Throws:
java.lang.IllegalArgumentException
- if invalid format
isValid
public static boolean isValid(java.lang.String stValue)
- Validates the value against the xsd definition.
Same validation as NCName for the time being
Copyright ? 2007 Apache Web Services Project. All Rights Reserved.