org.apache.axis.types

Class Token

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
Language, Name, NMToken

public class Token
extends NormalizedString

Custom class for supporting primitive XSD data type Token. token represents tokenized strings. The base type of token is normalizedString.
Author:
Chris Haddad
See Also:
XML Schema 3.3.2, Serialized Form

Constructor Summary

Token()
Token(String stValue)
ctor for Token

Method Summary

static boolean
isValid(String stValue)
validate the value against the xsd definition The value space of token is the set of strings that do not contain the line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces.
void
setValue(String stValue)
validates the data and sets the value for the object.

Methods inherited from class org.apache.axis.types.NormalizedString

equals, hashCode, isValid, setValue, toString

Constructor Details

Token

public Token()

Token

public Token(String stValue)
            throws IllegalArgumentException
ctor for Token

Method Details

isValid

public static boolean isValid(String stValue)
validate the value against the xsd definition The value space of token is the set of strings that do not contain the line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces. The lexical space of token is the set of strings that do not contain the line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces.
Overrides:
isValid in interface NormalizedString

setValue

public void setValue(String stValue)
            throws IllegalArgumentException
validates the data and sets the value for the object.
Overrides:
setValue in interface NormalizedString
Parameters:
stValue - String value

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.