de.torstennahm.integrate
Class IntegrationInfo

java.lang.Object
  extended by de.torstennahm.integrate.IntegrationInfo
Direct Known Subclasses:
CouldNotEvaluateInfo

public class IntegrationInfo
extends java.lang.Object

Provides additional information for an IntegrationResult. This class provides only a human-readable text description of the information. Other information should be provided by subclasses with additional methods.

Implementor's note: The integration info objects are stored in a set. In this way, if the same information is generated several times, and added to the set, only one copy is retained. This prevents the used from getting the same message potentially hundreds of times. For this to work, only the same information must indeed compare as equal in the set. Subclasses therefore need to override equals.

Author:
Torsten Nahm

Field Summary
protected  java.lang.String errorDescription
           
 
Constructor Summary
IntegrationInfo(java.lang.String textInfo)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String textInfo()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

errorDescription

protected java.lang.String errorDescription
Constructor Detail

IntegrationInfo

public IntegrationInfo(java.lang.String textInfo)
Method Detail

textInfo

public java.lang.String textInfo()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object