com.ontimize.dms.jcr.query
Class FunctionMethod
java.lang.Object
com.ontimize.dms.jcr.query.Function
com.ontimize.dms.jcr.query.FunctionMethod
- All Implemented Interfaces:
- java.io.Serializable
public class FunctionMethod
- extends Function
Call Jackrabbit XPath properties methods.
Warning: Date and Calendar not supported by
Jackrabbit method jcr:contains.
- Since:
- 19/01/2010
- See Also:
- Serialized Form
| Fields inherited from class com.ontimize.dms.jcr.query.Function |
CONTAINS, CONTAINS_NODE, converter, EQUALS, GREATER, GREATER_OR_EQUALS, HAVE, LESS, LESS_OR_EQUALS, LIKE, name, NOT_EQUALS, NOT_HAVE, STR_XS_DATETIME |
|
Method Summary |
protected java.lang.String |
convert(java.lang.Object value)
|
protected java.lang.String |
convertValue(java.lang.String value)
Deletes the quotes of the |
protected boolean |
hasPrefix(java.lang.Object value)
|
protected boolean |
hasSuffix(java.lang.Object value)
|
java.lang.StringBuffer |
parse(java.lang.String node,
java.lang.String name,
java.lang.Object value)
Overwrite to return a valid query string with the current function. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
STR_CONTAINS
protected static final java.lang.String STR_CONTAINS
- See Also:
- Constant Field Values
method
protected Method method
arroba
protected boolean arroba
FunctionMethod
public FunctionMethod(java.lang.String name,
Method method,
boolean arroba)
convertValue
protected java.lang.String convertValue(java.lang.String value)
- Deletes the quotes of the
- Overrides:
convertValue in class Function
hasPrefix
protected boolean hasPrefix(java.lang.Object value)
hasSuffix
protected boolean hasSuffix(java.lang.Object value)
convert
protected java.lang.String convert(java.lang.Object value)
parse
public java.lang.StringBuffer parse(java.lang.String node,
java.lang.String name,
java.lang.Object value)
- Description copied from class:
Function
Overwrite to return a valid query string with the current function.
- Specified by:
parse in class Function
name - Element name (Node, Property).value - Value to search.
- Returns:
- Query string.