RegexConstraint Class Reference

Constraint which simply does QRegexp::exactMatch() on QString values. More...

#include <constraint.h>

Inheritance diagram for RegexConstraint:

Inheritance graph
[legend]
Collaboration diagram for RegexConstraint:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RegexConstraint (QString regexp)
 RegexConstraint (QRegExp qr)
bool accepts (QVariant val) const
 
Parameters:
value the value to check the constraint against

QString toString () const
 
Returns:
an informative string describing this constraint (XML)


Protected Member Functions

 RegexConstraint ()
 We only permit derived classes to use default ctor, with the understanding that the derived types will also make sure the m_RegExp has been set properly.

Protected Attributes

QRegExp m_RegExp

Detailed Description

Constraint which simply does QRegexp::exactMatch() on QString values.

Definition at line 67 of file constraint.h.


Member Function Documentation

bool RegexConstraint::accepts ( QVariant  val  )  const [inline, virtual]

Parameters:
value the value to check the constraint against

Returns:
true if the value is accepted by this constraint

Reimplemented from Constraint.

Reimplemented in EnumConstraint.

Definition at line 76 of file constraint.h.


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