Class Rule

java.lang.Object
org.apache.fulcrum.intake.model.Rule
All Implemented Interfaces:
Serializable, Constraint

public class Rule extends Object implements Constraint, Serializable
A Class for holding data about a constraint on a property.
Version:
$Id$
Author:
John McNally, Thomas Vandahl
See Also:
  • Constructor Details

    • Rule

      public Rule()
  • Method Details

    • getName

      public String getName()
      Get the name of the parameter
      Specified by:
      getName in interface Constraint
      Returns:
      the constraint name
    • getValue

      public String getValue()
      Get the value of the parameter
      Specified by:
      getValue in interface Constraint
      Returns:
      the constraint value
    • getMessage

      public String getMessage()
      Get the error message
      Specified by:
      getMessage in interface Constraint
      Returns:
      the constraint error message
    • toString

      public String toString()
      String representation of the column. This is an xml representation.
      Overrides:
      toString in class Object