Package org.apache.axis.types
Class Token
- java.lang.Object
-
- org.apache.axis.types.NormalizedString
-
- org.apache.axis.types.Token
-
- All Implemented Interfaces:
java.io.Serializable
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.void
setValue(java.lang.String stValue)
validates the data and sets the value for the object.-
Methods inherited from class org.apache.axis.types.NormalizedString
equals, hashCode, toString
-
-
-
-
Method Detail
-
isValid
public static 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.
-
setValue
public void setValue(java.lang.String stValue) throws java.lang.IllegalArgumentException
validates the data and sets the value for the object.- Overrides:
setValue
in classNormalizedString
- Parameters:
stValue
- String value- Throws:
java.lang.IllegalArgumentException
- if invalid format
-
-