org.apache.axis.types

Class NonPositiveInteger

Known Direct Subclasses:
NegativeInteger

public class NonPositiveInteger
extends BigInteger

Custom class for supporting primitive XSD data type nonPositiveInteger nonPositiveInteger is derived from integer by setting the value of maxInclusive to be 0. This results in the standard mathematical concept of the non-positive integers. The value space of nonPositiveInteger is the infinite set {...,-2,-1,0}.
Author:
Chris Haddad
See Also:
XML Schema 3.3.14

Nested Class Summary

protected static class
NonPositiveInteger.BigIntegerRep

Constructor Summary

NonPositiveInteger(String val)
NonPositiveInteger(String val, int radix)
NonPositiveInteger(byte[] val)
NonPositiveInteger(int numBits, Random rnd)
NonPositiveInteger(int signum, byte[] magnitude)
NonPositiveInteger(int bitLength, int certainty, Random rnd)

Method Summary

Object
writeReplace()
Work-around for http://developer.java.sun.com/developer/bugParade/bugs/4378370.html

Constructor Details

NonPositiveInteger

public NonPositiveInteger(String val)

NonPositiveInteger

public NonPositiveInteger(String val,
                          int radix)

NonPositiveInteger

public NonPositiveInteger(byte[] val)

NonPositiveInteger

public NonPositiveInteger(int numBits,
                          Random rnd)

NonPositiveInteger

public NonPositiveInteger(int signum,
                          byte[] magnitude)

NonPositiveInteger

public NonPositiveInteger(int bitLength,
                          int certainty,
                          Random rnd)

Method Details

writeReplace

public Object writeReplace()
            throws ObjectStreamException
Work-around for http://developer.java.sun.com/developer/bugParade/bugs/4378370.html
Returns:
BigIntegerRep

Copyright © 2005 Apache Web Services Project. All Rights Reserved.