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

Language

public class Language extends Token
Custom class for supporting XSD data type language language represents natural language identifiers as defined by [RFC 1766]. The value space of language is the set of all strings that are valid language identifiers as defined in the language identification section of [XML 1.0 (Second Edition)]. The lexical space of language is the set of all strings that are valid language identifiers as defined in the language identification section of [XML 1.0 (Second Edition)]. The base type of language is token.
author
Eddie Pick
see
XML Schema 3.3.3

Fields Summary
Constructors Summary
public Language()

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

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("badLanguage00") + "data=[" +
                stValue + "]");
        }
    
Methods Summary
public static booleanisValid(java.lang.String stValue)
validate the value against the xsd definition TODO

see
RFC1766 Language-Tag = Primary-tag *( "-" Subtag ) Primary-tag = 1*8ALPHA Subtag = 1*8ALPHA

        return true;