Constraint Class Reference

base class for describing value constraints QVariant-based Constrant. More...

#include <constraint.h>

Inheritance diagram for Constraint:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Constraint (bool always=true)
virtual bool accepts (QVariant) const
 
Parameters:
value the value to check the constraint against

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


Detailed Description

base class for describing value constraints QVariant-based Constrant.

Constraint describes a value range or set, of any type supported by QVariant.

Constraint objects are used for describing ranges of values in a single dimenison.

Deprecated:

Definition at line 23 of file constraint.h.


Member Function Documentation

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

Parameters:
value the value to check the constraint against

Returns:
true if the value is accepted by this constraint

Reimplemented in IsoDateFormatConstraint, RegexConstraint, EnumConstraint, DoubleRangeConstraint, AndConstraint, and AlwaysConstraint.

Definition at line 35 of file constraint.h.

Referenced by ConstraintGroup::filter(), and ConstrainedDataObject::setProperty().


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