Ontimize Document Management 0.035EN

com.ontimize.dms.jcr.query
Class FunctionMethod

java.lang.Object
  extended by com.ontimize.dms.jcr.query.Function
      extended by 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

Field Summary
protected  boolean arroba
           
protected  Method method
           
protected static java.lang.String STR_CONTAINS
           
 
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
 
Constructor Summary
FunctionMethod(java.lang.String name, Method method, boolean arroba)
           
 
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 com.ontimize.dms.jcr.query.Function
convertValue, convertValue, convertValue, convertValue, getConverter, getName, getQuote, setConverter, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STR_CONTAINS

protected static final java.lang.String STR_CONTAINS
See Also:
Constant Field Values

method

protected Method method

arroba

protected boolean arroba
Constructor Detail

FunctionMethod

public FunctionMethod(java.lang.String name,
                      Method method,
                      boolean arroba)
Method Detail

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.

Ontimize Document Management