org.mmbase.storage.search
Interface FieldValueInConstraint

All Superinterfaces:
Constraint, FieldConstraint
All Known Implementing Classes:
BasicFieldValueInConstraint

public interface FieldValueInConstraint
extends FieldConstraint

A constraint that restricts the value of a stepfield to be in a specified list of values.

This corresponds to the use of "in (...)" in SQL SELECT-syntax.

Since:
MMBase-1.7
Version:
$Id: FieldValueInConstraint.java,v 1.5 2003/03/10 11:50:48 pierre Exp $
Author:
Rob van Maris

Method Summary
 java.util.SortedSet getValues()
          Gets the list of values that is specified for this constraint, the values being represented by strings.
 java.lang.String toString()
          Returns a string representation of this FieldValueInConstraint.
 
Methods inherited from interface org.mmbase.storage.search.FieldConstraint
getField, isCaseSensitive
 
Methods inherited from interface org.mmbase.storage.search.Constraint
equals, getBasicSupportLevel, hashCode, isInverse
 

Method Detail

getValues

public java.util.SortedSet getValues()
Gets the list of values that is specified for this constraint, the values being represented by strings.

Numerical values are represented by strings using the standard floating point format. Integral numerical values, however, are represented by strings using the standard integer format, i.e. without the decimal point (e.g. "123" instead of "123.0").


toString

public java.lang.String toString()
Returns a string representation of this FieldValueInConstraint. The string representation has the form "FieldValueInConstraint(inverse:<:inverse>, field:<field>, casesensitive:<casesensitive>, values:<values>)" where

Returns:
A string representation of this FieldValueInConstraint.


MMBase build 1.7.1.20041002