Class Token

All Implemented Interfaces:
Serializable
Direct Known 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 <chaddad@cobia.net>
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Token(String stValue)
    ctor for Token
  • Method Summary

    Modifier and Type
    Method
    Description
    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, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • 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.
    • setValue

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