Novell exteNd Web Services SDK API

com.sssw.jbroker.web.xsd
Class NonNegativeInteger

java.lang.Object
  extended bycom.sssw.jbroker.web.xsd.Validator
      extended bycom.sssw.jbroker.web.xsd.NonNegativeInteger
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PositiveInteger

public class NonNegativeInteger
extends Validator

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

Constructor Detail

NonNegativeInteger

public NonNegativeInteger(int value)
                   throws IllegalArgumentException
Construct a nonNegative integer with the specified value.

Parameters:
value - the value of the integer
Throws:
IllegalArgumentException - if the value can not be validated as a nonNegative integer.

NonNegativeInteger

public NonNegativeInteger(String value)
                   throws IllegalArgumentException
Construct a nonNegative integer with the specified value.

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

getValue

public int getValue()
Get the value of this nonNegative integer.

Returns:
the value of the integer

setValue

public void setValue(int value)
              throws IllegalArgumentException
Set the value of this nonNegative integer.

Parameters:
value - the value of the integer
Throws:
IllegalArgumentException - if the value can not be validated as a nonNegative integer.

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 integer is a proper XML Schema nonNegativeInteger.

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

Novell exteNd Web Services SDK API

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