FileDocCategorySizeDatePackage
Id.javaAPI DocApache Axis 1.42199Sat Apr 22 18:57:28 BST 2006org.apache.axis.types

Id

public class Id extends NCName
Custom class for supporting XSD data type ID The base type of Id is NCName.
author
Eddie Pick
see
XML Schema 3.3.8

Fields Summary
Constructors Summary
public Id()

        super();
    
public Id(String stValue)
ctor for Id

exception
IllegalArgumentException will be thrown if validation fails

        try {
            setValue(stValue);
        }
        catch (IllegalArgumentException e) {
            // recast normalizedString exception as token exception
            throw new IllegalArgumentException(
                    Messages.getMessage("badIdType00") + "data=[" +
                    stValue + "]");
        }
    
Methods Summary
public static booleanisValid(java.lang.String stValue)
validate the value against the xsd definition Same validation as NCName for the time being

      return NCName.isValid(stValue);
    
public voidsetValue(java.lang.String stValue)
validates the data and sets the value for the object.

param
Token String value
throws
IllegalArgumentException if invalid format

        if (Id.isValid(stValue) == false)
            throw new IllegalArgumentException(
               Messages.getMessage("badIdType00") +
               " data=[" + stValue + "]");
        m_value = stValue;