Novell exteNd Web Services SDK API

com.sssw.jbroker.web.xsd
Class Token

java.lang.Object
  extended bycom.sssw.jbroker.web.xsd.Validator
      extended bycom.sssw.jbroker.web.xsd.NormalizedString
          extended bycom.sssw.jbroker.web.xsd.Token
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Language, Name, NMTOKEN

public class Token
extends NormalizedString

A wrapper class that contains a token. Please refer to the XML Schema for the complete definition of this simple type.

Since:
jBroker Web 2.0
See Also:
Serialized Form

Constructor Summary
Token(String value)
          Construct a token with the specified value.
 
Method Summary
 boolean equals(Object other)
           
 String getValue()
          Get the value of this token.
 int hashCode()
           
 void setValue(String value)
          Set the value of this token.
 String toString()
          Return string form of object
static void validate(Object object)
          Validate that a string is a proper XML Schema token.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token

public Token(String value)
      throws IllegalArgumentException
Construct a token with the specified value.

Parameters:
value - the value of the string
Throws:
IllegalArgumentException - if the value can not be validated as a token.
Method Detail

getValue

public String getValue()
Get the value of this token.

Overrides:
getValue in class NormalizedString
Returns:
the value of the string

setValue

public void setValue(String value)
              throws IllegalArgumentException
Set the value of this token.

Overrides:
setValue in class NormalizedString
Parameters:
value - the value of the string
Throws:
IllegalArgumentException - if the value can not be validated as a token.

toString

public String toString()
Return string form of object

Overrides:
toString in class NormalizedString
Returns:
the value of the string

equals

public boolean equals(Object other)
Overrides:
equals in class NormalizedString

hashCode

public int hashCode()
Overrides:
hashCode in class NormalizedString

validate

public static void validate(Object object)
                     throws IllegalArgumentException
Validate that a string is a proper XML Schema token.

Throws:
IllegalArgumentException - if the value can not be validated as a token.

Novell exteNd Web Services SDK API

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.