EnumConstraint Class Reference

regexp constraint for matching QString against each enum value More...

#include <constraint.h>

Inheritance diagram for EnumConstraint:

Inheritance graph
[legend]
Collaboration diagram for EnumConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool accepts (QVariant val) const
 
Parameters:
value the value to check the constraint against

 EnumConstraint (QStringList validValues)

Detailed Description

regexp constraint for matching QString against each enum value

Definition at line 94 of file constraint.h.


Member Function Documentation

bool EnumConstraint::accepts ( QVariant  val  )  const [virtual]

Parameters:
value the value to check the constraint against

Returns:
true if the value is accepted by this constraint

Reimplemented from RegexConstraint.

Definition at line 15 of file constraint.cpp.

References RegexConstraint::m_RegExp.


The documentation for this class was generated from the following files:
Generated on Wed Sep 30 01:15:44 2009 for oopapidocs by  doxygen 1.5.1