Package org.apache.axis.types
Class Token
java.lang.Object
org.apache.axis.types.NormalizedString
org.apache.axis.types.Token
- All Implemented Interfaces:
Serializable
Custom class for supporting primitive XSD data type Token.
token represents tokenized strings.
The base type of token is normalizedString.
- Author:
- Chris Haddad invalid input: '<'chaddad@cobia.net>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
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
validates the data and sets the value for the object.Methods inherited from class org.apache.axis.types.NormalizedString
equals, hashCode, toString
-
Constructor Details
-
Token
public Token() -
Token
ctor for Token- Throws:
IllegalArgumentException
- will be thrown if validation fails
-
-
Method Details
-
isValid
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
validates the data and sets the value for the object.- Overrides:
setValue
in classNormalizedString
- Parameters:
stValue
- String value- Throws:
IllegalArgumentException
- if invalid format
-