com.plumtree.openfoundation.util
Class XPAssert

java.lang.Object
  extended bycom.plumtree.openfoundation.util.XPAssert

public class XPAssert
extends java.lang.Object

Provides assert functionality for Open Foundation.


Constructor Summary
XPAssert()
           
 
Method Summary
static void AssertArgumentNotNull(java.lang.String message, java.lang.Object arg)
          Static Method that Asserts Argument not to be null.
static void AssertArgumentOutOfRange(java.lang.String message, int lowRange, int highRange, int arg)
          Static Method that Asserts Argument not to be Out of Range.
static void AssertNull(java.lang.String message, java.lang.Object arg)
          Static Method that Asserts Argument to be null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPAssert

public XPAssert()
Method Detail

AssertArgumentNotNull

public static void AssertArgumentNotNull(java.lang.String message,
                                         java.lang.Object arg)
Static Method that Asserts Argument not to be null. If the Argument Object passed is null then it throws XPIllegalArgumentException.

Parameters:
message - User Specified Message.
arg - Object Assertion not to be null.

AssertNull

public static void AssertNull(java.lang.String message,
                              java.lang.Object arg)
Static Method that Asserts Argument to be null. If the Argument Object passed is null then it throws XPNullPointerException.

Parameters:
message - User Specified Message.
arg - Object Assertion to be null.

AssertArgumentOutOfRange

public static void AssertArgumentOutOfRange(java.lang.String message,
                                            int lowRange,
                                            int highRange,
                                            int arg)
Static Method that Asserts Argument not to be Out of Range. If the Argument Object passed is less than Low Range or Greater than High Range then it throws XPIllegalArgumentException.

Parameters:
message - Assert Argument is Out Of Range.
lowRange - Assert Argument should be greater than Low Range
highRange - Assert Argument should be less than High Range
arg - Assert Argument.


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.