org.jboss.axis.types
Class Token

java.lang.Object
  extended byorg.jboss.axis.types.NormalizedString (src) 
      extended byorg.jboss.axis.types.Token
Direct Known Subclasses:
Language (src) , Name (src) , NMToken (src)

public class Token
extends NormalizedString (src)

Custom class for supporting primitive XSD data type Token. token represents tokenized strings. The base type of token is normalizedString.

See Also:
XML Schema 3.3.2

Constructor Summary
Token()
           
Token(java.lang.String stValue)
          ctor for Token
 
Method Summary
 boolean isValid(java.lang.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.

 
Methods inherited from class org.jboss.axis.types.NormalizedString (src)
equals, hashCode, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token

public Token()

Token

public Token(java.lang.String stValue)
      throws java.lang.IllegalArgumentException
ctor for Token

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

isValid

public boolean isValid(java.lang.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 class NormalizedString (src)