org.apache.axis.types

Class PositiveInteger


public class PositiveInteger
extends NonNegativeInteger

Custom class for supporting primitive XSD data type positiveInteger positiveInteger is derived from nonNegativeInteger by setting the value of minInclusive to be 1. This results in the standard mathematical concept of the positive integer numbers. The value space of positiveInteger is the infinite set {1,2,...}.
Author:
Chris Haddad
See Also:
XML Schema 3.3.25

Nested Class Summary

protected static class
PositiveInteger.BigIntegerRep

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

NonNegativeInteger.BigIntegerRep

Constructor Summary

PositiveInteger(String val)
PositiveInteger(String val, int radix)
PositiveInteger(byte[] val)
PositiveInteger(int numBits, Random rnd)
PositiveInteger(int signum, byte[] magnitude)
PositiveInteger(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.NonNegativeInteger

writeReplace

Constructor Details

PositiveInteger

public PositiveInteger(String val)

PositiveInteger

public PositiveInteger(String val,
                       int radix)

PositiveInteger

public PositiveInteger(byte[] val)

PositiveInteger

public PositiveInteger(int numBits,
                       Random rnd)

PositiveInteger

public PositiveInteger(int signum,
                       byte[] magnitude)

PositiveInteger

public PositiveInteger(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 NonNegativeInteger
Returns:
BigIntegerRep

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