|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.MatchMode
public abstract class MatchMode
Represents an strategy for matching strings using "like".
| Field Summary | |
|---|---|
static MatchMode |
ANYWHERE
Match the pattern anywhere in the string |
static MatchMode |
END
Match the end of the string to the pattern |
static MatchMode |
START
Match the start of the string to the pattern |
| Constructor Summary | |
|---|---|
protected |
MatchMode(String name)
|
| Method Summary | |
|---|---|
abstract String |
toMatchString(String pattern)
convert the pattern, by appending/prepending "%" |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final MatchMode START
public static final MatchMode END
public static final MatchMode ANYWHERE
| Constructor Detail |
|---|
protected MatchMode(String name)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic abstract String toMatchString(String pattern)
pattern - input pattern
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||