org.apache.fulcrum.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 535465 2007-05-05 06:58:06Z tv $
Author:
John McNally

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

Method Detail

getName

String getName()
Get the name of the constraint.


getValue

String getValue()
Get the value of the constraint.


getMessage

String getMessage()
Get the error message.



Copyright © 2005-2009 The Apache Software Foundation. All Rights Reserved.