org.semwebcentral.sweetrules.infrastructure
Class SweetWarning

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.SweetWarning

public class SweetWarning
extends java.lang.Object

This class represents a warning object

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

Field Summary
private  java.lang.String warningMessage
          The warning message describing the warning
private  java.lang.Object warningSource
          The source object which wants the warning to be displayed
 
Constructor Summary
SweetWarning(java.lang.String message, java.lang.Object source)
          Constructor for the SWEET warning class
 
Method Summary
 java.lang.String getWarningMessage()
          Retrieves the warning message
 java.lang.Object getWarningSource()
          Returns the source of the warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

warningMessage

private java.lang.String warningMessage
The warning message describing the warning


warningSource

private java.lang.Object warningSource
The source object which wants the warning to be displayed

Constructor Detail

SweetWarning

public SweetWarning(java.lang.String message,
                    java.lang.Object source)
Constructor for the SWEET warning class

Parameters:
message - The warning message
source - The source of the warning
Method Detail

getWarningMessage

public java.lang.String getWarningMessage()
Retrieves the warning message

Returns:
The warning message

getWarningSource

public java.lang.Object getWarningSource()
Returns the source of the warning

Returns:
The source of the warning