|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.data.util.sqlcontainer.query.generator.filter.StringDecorator
public class StringDecorator
The StringDecorator knows how to produce a quoted string using the specified quote start and quote end characters. It also handles grouping of a string (surrounding it in parenthesis). Extend this class if you need to support special characters for grouping (parenthesis).
Constructor Summary | |
---|---|
StringDecorator(String quoteStart,
String quoteEnd)
Constructs a StringDecorator that uses the quoteStart and quoteEnd characters to create quoted strings. |
Method Summary | |
---|---|
String |
group(String str)
Groups a string by surrounding it in parenthesis |
String |
quote(Object str)
Surround a string with quote characters. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringDecorator(String quoteStart, String quoteEnd)
quoteStart
- the character denoting the start of a quote.quoteEnd
- the character denoting the end of a quote.Method Detail |
---|
public String quote(Object str)
str
- the string to quote
public String group(String str)
str
- the string to group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |