Schnittstelle Constraint

Alle bekannten Implementierungsklassen:
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$
Autor:
John McNally
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    Get the error message.
    Get the name of the constraint.
    Get the value of the constraint.
  • Methodendetails

    • getName

      String getName()
      Get the name of the constraint.
      Gibt zurück:
      the constraint name
    • getValue

      String getValue()
      Get the value of the constraint.
      Gibt zurück:
      the constraint value
    • getMessage

      String getMessage()
      Get the error message.
      Gibt zurück:
      the constraint error message