IT_Bus::NonPositiveInteger Class Reference

#include <it_bus/integer.h>

Inheritance diagram for IT_Bus::NonPositiveInteger:

IT_Bus::Integer IT_Bus::AnySimpleType IT_Bus::AnyType IT_Bus::ImplementationDetails IT_Bus::NegativeInteger List of all members.

Detailed Description

Class encapsulated within generated classes derived from xsd:nonPositiveInteger type definitions in a WSDL or XSD file.

This class stores the value as a Decimal value.

Definition at line 448 of file integer.h.

Public Types

typedef IT_Reflect::ValueRef<
IT_Bus::NonPositiveInteger
IT_ReflectionType

Public Member Functions

 NonPositiveInteger () throw (())
 No argument constructor.
 NonPositiveInteger (short value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (unsigned short value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (int value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (unsigned int value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (long value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (unsigned long value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (IT_LongLong value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (IT_ULongLong value) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (const char *value, bool truncate=false) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (const String &value, bool truncate=false) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (const Decimal &value, bool truncate=false) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (const Integer &copy) throw ((IT_Bus::Exception))
 Constructor.
 NonPositiveInteger (const NonPositiveInteger &copy) throw (())
 Copy constructor.
NonPositiveIntegeroperator= (short value) throw ((IT_Bus::Exception))
 Assignment operator from short.
NonPositiveIntegeroperator= (unsigned short value) throw ((IT_Bus::Exception))
 Assignment operator from unsigned short.
NonPositiveIntegeroperator= (int value) throw ((IT_Bus::Exception))
 Assignment operator from int.
NonPositiveIntegeroperator= (unsigned int value) throw ((IT_Bus::Exception))
 Assignment operator from unsigned int.
NonPositiveIntegeroperator= (long value) throw ((IT_Bus::Exception))
 Assignment operator from long.
NonPositiveIntegeroperator= (unsigned long value) throw ((IT_Bus::Exception))
 Assignment operator from unsigned long.
NonPositiveIntegeroperator= (IT_LongLong value) throw ((IT_Bus::Exception))
 Assignment operator from longlong.
NonPositiveIntegeroperator= (IT_ULongLong value) throw ((IT_Bus::Exception))
 Assignment operator from unsigned longlong.
NonPositiveIntegeroperator= (const Integer &rhs) throw ((IT_Bus::Exception))
 Assignment operator from Integer.
NonPositiveIntegeroperator= (const NonPositiveInteger &rhs) throw (())
 Assignment operator from NonPositiveInteger.
virtual AnyTypecopy (const AnyType &copy)
 Returns a reference to an AnyType that is a copy of the AnyType parameter.
virtual const QNameget_type () const
 Returns the IT_Bus::QName for the type.
virtual IT_Reflect::Reflectionget_reflection () throw ((IT_Reflect::ReflectException))
 Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
virtual const IT_Reflect::Reflectionget_reflection () const throw ((IT_Reflect::ReflectException))
 Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Static Public Member Functions

static bool is_valid_non_positive_integer (const Decimal &value) throw (())
 Determines whether the test value is a valid nonpositive integer.

Protected Member Functions

virtual void validate (const Decimal &value) const throw ((IT_Bus::Exception))
 Checks whether the test value is a valid integer.

Static Protected Member Functions

static void validate_non_positive_integer (const Decimal &value) throw ((IT_Bus::Exception))
 Checks whether the test value is a valid nonpositive integer.


Constructor & Destructor Documentation

IT_Bus::NonPositiveInteger::NonPositiveInteger ( short  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
short value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( unsigned short  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
unsigned short value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( int  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
int value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( unsigned int  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
unsigned int value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( long  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
long value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( unsigned long  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
unsigned long value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( IT_LongLong  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
longlong value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( IT_ULongLong  value  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
unsigned longlong value to use in initializing instance.

IT_Bus::NonPositiveInteger::NonPositiveInteger ( const char *  value,
bool  truncate = false 
) throw ((IT_Bus::Exception))

Constructor.

Parameters:
Pointer to character array value to use in initializing instance.
bool indicator of whether to trucate the value at a possible decimal point

IT_Bus::NonPositiveInteger::NonPositiveInteger ( const String value,
bool  truncate = false 
) throw ((IT_Bus::Exception))

Constructor.

Parameters:
String value to use in initializing instance.
bool indicator of whether to trucate the value at a possible decimal point

IT_Bus::NonPositiveInteger::NonPositiveInteger ( const Decimal value,
bool  truncate = false 
) throw ((IT_Bus::Exception))

Constructor.

Parameters:
Decimal value to use in initializing instance.
bool indicator of whether to trucate the value at the decimal point

IT_Bus::NonPositiveInteger::NonPositiveInteger ( const Integer copy  )  throw ((IT_Bus::Exception))

Constructor.

Parameters:
Integer value to use in initializing instance.


Member Function Documentation

static bool IT_Bus::NonPositiveInteger::is_valid_non_positive_integer ( const Decimal value  )  throw (()) [static]

Determines whether the test value is a valid nonpositive integer.

Parameters:
Decimal value to be tested.
Returns:
bool

virtual AnyType& IT_Bus::NonPositiveInteger::copy ( const AnyType copy  )  [virtual]

Returns a reference to an AnyType that is a copy of the AnyType parameter.

Derived classes override this method, providing an appropriate implementation. In this base class, this method is not supported; an exception is always thrown.

Parameters:
AnyType to be copied.
Returns:
A reference to AnyType.
Exceptions:
IT_Bus::Exception with message "Copy not supported"

Reimplemented from IT_Bus::Integer.

Reimplemented in IT_Bus::NegativeInteger.

virtual const QName& IT_Bus::NonPositiveInteger::get_type (  )  const [virtual]

Returns the IT_Bus::QName for the type.

Derived subclasses implement this method and return their QName.

Returns:
NT_SCHEMA_NPINT.

Reimplemented from IT_Bus::Integer.

Reimplemented in IT_Bus::NegativeInteger.

virtual IT_Reflect::Reflection* IT_Bus::NonPositiveInteger::get_reflection (  )  throw ((IT_Reflect::ReflectException)) [virtual]

Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Returns:
IT_Reflect::Reflection
Exceptions:
IT_Reflect::ReflectException 

Reimplemented from IT_Bus::Integer.

Reimplemented in IT_Bus::NegativeInteger.

virtual const IT_Reflect::Reflection* IT_Bus::NonPositiveInteger::get_reflection (  )  const throw ((IT_Reflect::ReflectException)) [virtual]

Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.

Returns:
IT_Reflect::Reflection
Exceptions:
IT_Reflect::ReflectException 

Reimplemented from IT_Bus::Integer.

Reimplemented in IT_Bus::NegativeInteger.

virtual void IT_Bus::NonPositiveInteger::validate ( const Decimal value  )  const throw ((IT_Bus::Exception)) [protected, virtual]

Checks whether the test value is a valid integer.

This method invokes the validate_non_positive_integer() method.

Exceptions:
IT_Bus::Exception 

Reimplemented from IT_Bus::Integer.

Reimplemented in IT_Bus::NegativeInteger.

static void IT_Bus::NonPositiveInteger::validate_non_positive_integer ( const Decimal value  )  throw ((IT_Bus::Exception)) [static, protected]

Checks whether the test value is a valid nonpositive integer.

Exceptions:
IT_Bus::Exception with the message "Out of range" if the test value is > 0.


Generated on Tue Mar 20 15:28:01 2007 for Artix by  doxygen 1.5.1-p1