org.apache.axis.types

Class NegativeInteger


public class NegativeInteger
extends NonPositiveInteger

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

Nested Class Summary

protected static class
NegativeInteger.BigIntegerRep

Nested classes/interfaces inherited from class org.apache.axis.types.NonPositiveInteger

NonPositiveInteger.BigIntegerRep

Constructor Summary

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

Method Summary

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

Methods inherited from class org.apache.axis.types.NonPositiveInteger

writeReplace

Constructor Details

NegativeInteger

public NegativeInteger(String val)

NegativeInteger

public NegativeInteger(String val,
                       int radix)

NegativeInteger

public NegativeInteger(byte[] val)

NegativeInteger

public NegativeInteger(int numBits,
                       Random rnd)

NegativeInteger

public NegativeInteger(int signum,
                       byte[] magnitude)

NegativeInteger

public NegativeInteger(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
Overrides:
writeReplace in interface NonPositiveInteger
Returns:
BigIntegerRep

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.