org.deri.wsmo4j.validator
Class ValidationMessageImpl

java.lang.Object
  extended by org.deri.wsmo4j.validator.ValidationMessageImpl
All Implemented Interfaces:
org.wsmo.validator.ValidationMessage
Direct Known Subclasses:
ValidationErrorImpl, ValidationWarningImpl

public abstract class ValidationMessageImpl
extends Object
implements org.wsmo.validator.ValidationMessage

Gives Structure to a validation message.

  Created on Jul 28, 2005
  Committed by $Author: nathaliest $
  $Source$,
 

Version:
$Revision: 1481 $ $Date: 2006-01-16 15:32:46 +0200 (Mon, 16 Jan 2006) $
Author:
Holger Lausen, nathalie.steinmetz@deri.org
See Also:
ValidationError, ValidationWarning

Constructor Summary
ValidationMessageImpl(org.wsmo.common.Entity entity, String reason)
           
ValidationMessageImpl(org.wsmo.common.Entity entity, String reason, String quickFix)
           
 
Method Summary
 org.wsmo.common.Entity getEntity()
           
 String getQuickFix()
           
 String getReason()
           
 String toString()
          Formats the String representation of the ValidationError.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationMessageImpl

public ValidationMessageImpl(org.wsmo.common.Entity entity,
                             String reason)

ValidationMessageImpl

public ValidationMessageImpl(org.wsmo.common.Entity entity,
                             String reason,
                             String quickFix)
Method Detail

getEntity

public org.wsmo.common.Entity getEntity()
Specified by:
getEntity in interface org.wsmo.validator.ValidationMessage
Returns:
the entity in which the violation occured
See Also:
ValidationMessage.getEntity()

getReason

public String getReason()
Specified by:
getReason in interface org.wsmo.validator.ValidationMessage
Returns:
String representation of error in Entity
See Also:
ValidationMessage.getReason()

getQuickFix

public String getQuickFix()
Specified by:
getQuickFix in interface org.wsmo.validator.ValidationMessage
Returns:
String representation of a quick fix possibility
See Also:
ValidationMessage.getQuickFix(), ValidationMessage.getQuickFix()

toString

public String toString()
Formats the String representation of the ValidationError.

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


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