org.apache.axis2.databinding.types
Class Language
java.lang.Object
org.apache.axis2.databinding.types.NormalizedString
org.apache.axis2.databinding.types.Token
org.apache.axis2.databinding.types.Language
- All Implemented Interfaces:
- Serializable
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.
- See Also:
- XML Schema 3.3.3,
Serialized Form
Method Summary |
static boolean |
isValid(String stValue)
Validates the value against the xsd definition. |
Methods inherited from class org.apache.axis2.databinding.types.Token |
setValue |
Language
public Language()
Language
public Language(String stValue)
throws IllegalArgumentException
- ctor for Language
- Throws:
IllegalArgumentException
- will be thrown if validation fails
isValid
public static boolean isValid(String stValue)
- Validates the value against the xsd definition. Language-Tag = Primary-tag *( "-" Subtag )
Primary-tag = 1*8ALPHA Subtag = 1*8ALPHA TODO
- See Also:
- RFC1766
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.