org.deri.wsmo4j.validator
Class ValidationWarningImpl

java.lang.Object
  extended by org.deri.wsmo4j.validator.ValidationMessageImpl
      extended by org.deri.wsmo4j.validator.ValidationWarningImpl
All Implemented Interfaces:
org.wsmo.validator.ValidationMessage, org.wsmo.validator.ValidationWarning

public class ValidationWarningImpl
extends ValidationMessageImpl
implements org.wsmo.validator.ValidationWarning

Validation Warning

 Created on 18.11.2005
 Committed by $Author$
 $Source$,
 

Version:
$Revision$ $Date$
Author:
Holger Lausen (holger.lausen@deri.org)

Constructor Summary
ValidationWarningImpl(org.wsmo.common.Entity entity, String warning)
           
ValidationWarningImpl(org.wsmo.common.Entity entity, String warning, String quickFix)
           
 
Method Summary
 boolean equals(Object obj)
           The equals method implements an equivalence relation on non-null object references.
 int hashCode()
           If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.
 String toString()
          Formats the String representation of the ValidationError.
 
Methods inherited from class org.deri.wsmo4j.validator.ValidationMessageImpl
getEntity, getQuickFix, getReason
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.wsmo.validator.ValidationMessage
getEntity, getQuickFix, getReason
 

Constructor Detail

ValidationWarningImpl

public ValidationWarningImpl(org.wsmo.common.Entity entity,
                             String warning)

ValidationWarningImpl

public ValidationWarningImpl(org.wsmo.common.Entity entity,
                             String warning,
                             String quickFix)
Method Detail

toString

public String toString()
Description copied from class: ValidationMessageImpl
Formats the String representation of the ValidationError.

Overrides:
toString in class ValidationMessageImpl
See Also:
Object.toString()

equals

public boolean equals(Object obj)

The equals method implements an equivalence relation on non-null object references. ValidationWarnings are equal if their warning and quickFix messages are equal.

It is generally necessary to override the hashCode method whenever this method is overridden.

Overrides:
equals in class Object
Parameters:
o - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.
See Also:
Object.equals(java.lang.Object), Object.hashCode()

hashCode

public int hashCode()

If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result. However, it is not required that if two objects are unequal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce distinct integer results.

This method should be overriden, when the equals(Object) method is overriden.

Overrides:
hashCode in class Object
Returns:
A hash code value for this Object.
See Also:
Object.hashCode(), Object.equals(Object)


Copyright © 2004-2008 Ontotext Lab.. All Rights Reserved.