Novell exteNd Web Services SDK API

com.sssw.jbroker.web.xsd
Class UnsignedByte

java.lang.Object
  extended bycom.sssw.jbroker.web.xsd.Validator
      extended bycom.sssw.jbroker.web.xsd.UnsignedByte
All Implemented Interfaces:
Serializable

public class UnsignedByte
extends Validator

A wrapper class that contains a unsignedByte. 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
UnsignedByte(byte value)
          Construct an unsigned byte with the specified value.
UnsignedByte(String value)
          Construct an unsigned byte with the specified value.
 
Method Summary
 boolean equals(Object other)
           
 byte getValue()
          Get the value of this unsigned byte.
 int hashCode()
           
 void setValue(byte value)
          Set the value of this unsigned byte.
 String toString()
          Return string form of object
static void validate(Object object)
          Validate that a byte is a proper XML Schema unsignedByte.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsignedByte

public UnsignedByte(byte value)
             throws IllegalArgumentException
Construct an unsigned byte with the specified value.

Parameters:
value - the value of the byte
Throws:
IllegalArgumentException - if the value can not be validated as an unsigned byte.

UnsignedByte

public UnsignedByte(String value)
             throws IllegalArgumentException
Construct an unsigned byte with the specified value.

Parameters:
value - the value of the byte
Throws:
IllegalArgumentException - if the value can not be validated as an unsigned byte.
Method Detail

getValue

public byte getValue()
Get the value of this unsigned byte.

Returns:
the value of the byte

setValue

public void setValue(byte value)
              throws IllegalArgumentException
Set the value of this unsigned byte.

Parameters:
value - the value of the byte
Throws:
IllegalArgumentException - if the value can not be validated as an unsigned byte.

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public String toString()
Return string form of object

Returns:
the value of the string

validate

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

Throws:
IllegalArgumentException - if the value can not be validated as an unsigned byte.

Novell exteNd Web Services SDK API

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