org.apache.turbine.services.intake.validator
Interface Constraint

All Known Implementing Classes:
Rule

public interface Constraint

A constraint has a name and a value and an optional message. The name/value pair will have meaning to a Validator and the message will serve as an error message in the event the Validator determines the constraint is violated. example: name="maxLength" value="255" message="Value cannot be longer than 255 characters."

Version:
$Id: Constraint.java 264148 2005-08-29 14:21:04Z henning $
Author:
John McNally

Method Summary
 java.lang.String getMessage()
          Get the error message.
 java.lang.String getName()
          Get the name of the constraint.
 java.lang.String getValue()
          Get the value of the constraint.
 

Method Detail

getName

public java.lang.String getName()
Get the name of the constraint.


getValue

public java.lang.String getValue()
Get the value of the constraint.


getMessage

public java.lang.String getMessage()
Get the error message.



Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.