|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicConstraint
org.mmbase.storage.search.implementation.BasicFieldConstraint
public class BasicFieldConstraint
Basic implementation.
The caseSensitive property defaults to true.
| Field Summary |
|---|
| Fields inherited from class org.mmbase.storage.search.implementation.BasicConstraint |
|---|
modifiable |
| Constructor Summary | |
|---|---|
protected |
BasicFieldConstraint(StepField field)
Constructor. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this constraint to the specified object. |
StepField |
getField()
Gets the associated stepfield. |
String |
getFieldName()
Returns the main field's fieldname, possibly extended with the step'sname if known. |
int |
hashCode()
|
boolean |
isCaseSensitive()
Tests if a the string comparison is case sensitive. |
boolean |
matches(Object o)
Determines whether a certain given value would match this constraint. |
BasicFieldConstraint |
setCaseSensitive(boolean caseSensitive)
Sets caseSensitive property. |
String |
toString()
|
| Methods inherited from class org.mmbase.storage.search.implementation.BasicConstraint |
|---|
getBasicSupportLevel, isInverse, setInverse, setUnmodifiable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.Constraint |
|---|
getBasicSupportLevel, isInverse, setUnmodifiable |
| Constructor Detail |
|---|
protected BasicFieldConstraint(StepField field)
field - The associated field.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
|---|
public BasicFieldConstraint setCaseSensitive(boolean caseSensitive)
caseSensitive - The caseSensitive property value.
BasicFieldConstraint instance.public boolean matches(Object o)
FieldConstraint
matches in interface FieldConstraintpublic StepField getField()
FieldConstraint
getField in interface FieldConstraintpublic boolean isCaseSensitive()
FieldConstraint
isCaseSensitive in interface FieldConstraintpublic boolean equals(Object obj)
Constrainttrue if and only if the argument is a non-null
Constraint object representing the same constraint(s).
equals in interface Constraintequals in class BasicConstraintobj - The object to compare with.
true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface ConstrainthashCode in class BasicConstraintpublic String getFieldName()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||