org.semwebcentral.sweetrules.util
Class SweetAssert

java.lang.Object
  extended byorg.semwebcentral.sweetrules.util.SweetAssert

public class SweetAssert
extends java.lang.Object

Utility to provide assert mechanism

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Field Summary
private  Logger logger
          The logger object
 
Constructor Summary
SweetAssert()
           
 
Method Summary
 void validateAssertion(boolean condition)
          A method to assert a condition, if false the program exits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private Logger logger
The logger object

Constructor Detail

SweetAssert

public SweetAssert()
Method Detail

validateAssertion

public void validateAssertion(boolean condition)
A method to assert a condition, if false the program exits

Parameters:
condition - The condition to be asserted