Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::gp::util::NbAssert Class Reference

Inheritance diagram for cern::gp::util::NbAssert:

Inheritance graph
[legend]
Collaboration diagram for cern::gp::util::NbAssert:

Collaboration graph
[legend]
List of all members.

Public Member Functions

boolean doAssert (boolean condition, String errMsg)

Static Public Member Functions

boolean assertTrue (boolean condition, String errMsg)

Static Private Member Functions

final NbAssert get ()

Static Private Attributes

NbAssert ass = null
final Object lock = new Object()

Detailed Description

A Netbeans oriented implementation of the Assert mechanism. Can be called either directly, using the static NbAssert.assertTrue method or from the principal Assert class
See also:
cern.spsea.util.Assert
Author:
Vito Baggiolini 29-04-02
Version:
0.3 3-May-02


Member Function Documentation

boolean cern::gp::util::NbAssert::assertTrue boolean  condition,
String  errMsg
[inline, static]
 

asserts a condition. Does nothing if the condition is true, shows the error message in a JDialog if the condition is false beware: Unlike the normal cern.spsea.util.Assert#assertTrue(boolean, String) method execution continues after this statement, it does not throw a RuntimeException. If the program cannot continue after an assertion failure, you have to take appropriate measures yourself

Parameters:
condition the condition to be checked
errMsg the message to be displayed if the condition is false
Returns:
the condition

boolean cern::gp::util::NbAssert::doAssert boolean  condition,
String  errMsg
[inline]
 

implementation of the IAssert interface. Called either from the assertTrue method in this class or from the assertTrue method in the main Assert class. beware: Unlike the normal cern.spsea.util.Assert#assertTrue(boolean, String) method execution continues after this statement, it does not throw a RuntimeException. If the program cannot continue after an assertion failure, you have to take appropriate measures yourself

Parameters:
condition the condition to be checked
errMsg the message to be displayed if the condition is false
Returns:
the condition
See also:
cern.spsea.util.Assert

Implements cern::gp::util::IAssert.

final NbAssert cern::gp::util::NbAssert::get  )  [inline, static, private]
 

factory method, initializes and/or returns the NbAssert singleton


Member Data Documentation

NbAssert cern::gp::util::NbAssert::ass = null [static, private]
 

final Object cern::gp::util::NbAssert::lock = new Object() [static, private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:40 2009 for ACS Java API by doxygen 1.3.8