org.apache.axis2.databinding.types
Class Id

java.lang.Object
  extended by org.apache.axis2.databinding.types.NormalizedString
      extended by org.apache.axis2.databinding.types.Token
          extended by org.apache.axis2.databinding.types.Name
              extended by org.apache.axis2.databinding.types.NCName
                  extended by org.apache.axis2.databinding.types.Id
All Implemented Interfaces:
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(String stValue)
          Constructor for Id.
 
Method Summary
static boolean isValid(String stValue)
          Validates the value against the xsd definition.
 void setValue(String stValue)
          Validates the data and sets the value for the object.
 
Methods inherited from class org.apache.axis2.databinding.types.NormalizedString
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Id

public Id()

Id

public Id(String stValue)
   throws IllegalArgumentException
Constructor for Id.

Throws:
IllegalArgumentException - will be thrown if validation fails
Method Detail

setValue

public void setValue(String stValue)
              throws IllegalArgumentException
Validates the data and sets the value for the object.

Overrides:
setValue in class NCName
Parameters:
stValue - String value
Throws:
IllegalArgumentException - if invalid format

isValid

public static boolean isValid(String stValue)
Validates the value against the xsd definition.

Same validation as NCName for the time being



Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.