Apache CXF API

org.apache.cxf.jaxrs.ext.search.client
Class FiqlSearchConditionBuilder.Builder

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.client.FiqlSearchConditionBuilder.Builder
All Implemented Interfaces:
CompleteCondition, PartialCondition, Property
Enclosing class:
FiqlSearchConditionBuilder

protected static class FiqlSearchConditionBuilder.Builder
extends Object
implements Property, CompleteCondition, PartialCondition


Field Summary
protected  String currentCompositeOp
           
protected  DateFormat df
           
protected  FiqlSearchConditionBuilder.Builder parent
           
protected  String result
           
protected  boolean timeZoneSupported
           
 
Constructor Summary
FiqlSearchConditionBuilder.Builder(FiqlSearchConditionBuilder.Builder parent)
           
FiqlSearchConditionBuilder.Builder(Map<String,String> properties)
           
 
Method Summary
 CompleteCondition after(Date date)
          Is date property after (greater than) given date?
 CompleteCondition after(Duration distanceFromNow)
          Is date property after (greater than) date distant from now by given period of time?
 PartialCondition and()
          Conjunct current expression with another
 CompleteCondition and(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
          Conjunct multiple expressions
 CompleteCondition and(List<CompleteCondition> conditions)
          Conjunct multiple expressions
 Property and(String name)
          shortcut for and().is()
 CompleteCondition before(Date date)
          Is date property before (less than) given date?
 CompleteCondition before(Duration distanceFromNow)
          Is date property before (less than) date distant from now by given period of time?
protected  String buildPartial(FiqlSearchConditionBuilder.Builder exclude)
           
 CompleteCondition comparesTo(ConditionType type, Date value)
          Generic
 CompleteCondition comparesTo(ConditionType type, Double value)
          Generic
 CompleteCondition comparesTo(ConditionType type, Duration value)
          Generic
 CompleteCondition comparesTo(ConditionType type, Integer value)
          Generic
 CompleteCondition comparesTo(ConditionType type, Long value)
          Generic
 CompleteCondition comparesTo(ConditionType type, String value)
          Generic
protected  CompleteCondition condition(String operator, Object value, Object... moreValues)
           
protected  CompleteCondition conditionsList(String op, List<CompleteCondition> conditions)
           
 CompleteCondition equalTo(Date date, Date... moreValues)
          Is date property same as given date?
 CompleteCondition equalTo(Double number, Double... moreValues)
          Is numeric property equal to given double number?
 CompleteCondition equalTo(Duration distanceFromNow, Duration... moreValues)
          Is date property same as date distant from now by given period of time?
 CompleteCondition equalTo(Integer number, Integer... moreValues)
          Is numeric property equal to given long number?
 CompleteCondition equalTo(Long number, Long... moreValues)
          Is numeric property equal to given long number?
 CompleteCondition equalTo(String value, String... moreValues)
          Is textual property equal to given literal or matching given pattern?
protected  DateFormat getDateFormat()
           
 CompleteCondition greaterOrEqualTo(Double number)
          Is numeric property greater or equal to given number?
 CompleteCondition greaterOrEqualTo(Integer number)
          Is numeric property greater or equal to given number?
 CompleteCondition greaterOrEqualTo(Long number)
          Is numeric property greater or equal to given number?
 CompleteCondition greaterThan(Double number)
          Is numeric property greater than given number?
 CompleteCondition greaterThan(Integer number)
          Is numeric property greater than given number?
 CompleteCondition greaterThan(Long number)
          Is numeric property greater than given number?
 Property is(String property)
          Get property of inspected entity type
protected  boolean isTimeZoneSupported()
           
 CompleteCondition lessOrEqualTo(Double number)
          Is numeric property less or equal to given number?
 CompleteCondition lessOrEqualTo(Integer number)
          Is numeric property less or equal to given number?
 CompleteCondition lessOrEqualTo(Long number)
          Is numeric property less or equal to given number?
 CompleteCondition lessThan(Double number)
          Is numeric property less than given number?
 CompleteCondition lessThan(Integer number)
          Is numeric property less than given number?
 CompleteCondition lessThan(Long number)
          Is numeric property less than given number?
 CompleteCondition lexicalAfter(String literal)
          Is textual property lexically after (greater than) given literal?
 CompleteCondition lexicalBefore(String literal)
          Is textual property lexically before (less than) given literal?
 CompleteCondition lexicalNotAfter(String literal)
          Is textual property lexically not after (less or equal to) given literal?
 CompleteCondition lexicalNotBefore(String literal)
          Is textual property lexically not before (greater or equal to) given literal?
 CompleteCondition notAfter(Date date)
          Is date property not after (less or equal to) given date?
 CompleteCondition notAfter(Duration distanceFromNow)
          Is date property not after (less or equal to) date distant from now by given period of time?
 CompleteCondition notBefore(Date date)
          Is date property not before (greater or equal to) given date?
 CompleteCondition notBefore(Duration distanceFromNow)
          Is date property not before (greater or equal to) date distant from now by given period of time?
 CompleteCondition notEqualTo(Date date)
          Is date property different than given date?
 CompleteCondition notEqualTo(Double number)
          Is numeric property different than given double number?
 CompleteCondition notEqualTo(Duration distanceFromNow)
          Is date property different than date distant from now by given period of time?
 CompleteCondition notEqualTo(Integer number)
          Is numeric property different than given int number?
 CompleteCondition notEqualTo(Long number)
          Is numeric property different than given long number?
 CompleteCondition notEqualTo(String literalOrPattern)
          Is textual property different than given literal or not matching given pattern?
 PartialCondition or()
          Disjunct current expression with another
 CompleteCondition or(CompleteCondition c1, CompleteCondition c2, CompleteCondition... cn)
          Disjunct multiple expressions
 CompleteCondition or(List<CompleteCondition> conditions)
          Disjunct multiple expressions
 Property or(String name)
          shortcut for or().is()
 String query()
          Finalize condition construction and build search condition query.
protected  String toFiqlPrimitiveCondition(ConditionType type)
           
protected  String toString(Object value)
           
 CompleteCondition wrap()
          Wraps the current expression in ()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

protected String result

parent

protected FiqlSearchConditionBuilder.Builder parent

df

protected DateFormat df

timeZoneSupported

protected boolean timeZoneSupported

currentCompositeOp

protected String currentCompositeOp
Constructor Detail

FiqlSearchConditionBuilder.Builder

public FiqlSearchConditionBuilder.Builder(Map<String,String> properties)

FiqlSearchConditionBuilder.Builder

public FiqlSearchConditionBuilder.Builder(FiqlSearchConditionBuilder.Builder parent)
Method Detail

query

public String query()
Description copied from interface: CompleteCondition
Finalize condition construction and build search condition query.

Specified by:
query in interface CompleteCondition

getDateFormat

protected DateFormat getDateFormat()

isTimeZoneSupported

protected boolean isTimeZoneSupported()

buildPartial

protected String buildPartial(FiqlSearchConditionBuilder.Builder exclude)

after

public CompleteCondition after(Date date)
Description copied from interface: Property
Is date property after (greater than) given date?

Specified by:
after in interface Property

before

public CompleteCondition before(Date date)
Description copied from interface: Property
Is date property before (less than) given date?

Specified by:
before in interface Property

comparesTo

public CompleteCondition comparesTo(ConditionType type,
                                    String value)
Description copied from interface: Property
Generic

Specified by:
comparesTo in interface Property

comparesTo

public CompleteCondition comparesTo(ConditionType type,
                                    Double value)
Description copied from interface: Property
Generic

Specified by:
comparesTo in interface Property

comparesTo

public CompleteCondition comparesTo(ConditionType type,
                                    Integer value)
Description copied from interface: Property
Generic

Specified by:
comparesTo in interface Property

comparesTo

public CompleteCondition comparesTo(ConditionType type,
                                    Long value)
Description copied from interface: Property
Generic

Specified by:
comparesTo in interface Property

comparesTo

public CompleteCondition comparesTo(ConditionType type,
                                    Date value)
Description copied from interface: Property
Generic

Specified by:
comparesTo in interface Property

comparesTo

public CompleteCondition comparesTo(ConditionType type,
                                    Duration value)
Description copied from interface: Property
Generic

Specified by:
comparesTo in interface Property

equalTo

public CompleteCondition equalTo(String value,
                                 String... moreValues)
Description copied from interface: Property
Is textual property equal to given literal or matching given pattern?

Specified by:
equalTo in interface Property

equalTo

public CompleteCondition equalTo(Double number,
                                 Double... moreValues)
Description copied from interface: Property
Is numeric property equal to given double number?

Specified by:
equalTo in interface Property

equalTo

public CompleteCondition equalTo(Long number,
                                 Long... moreValues)
Description copied from interface: Property
Is numeric property equal to given long number?

Specified by:
equalTo in interface Property

equalTo

public CompleteCondition equalTo(Integer number,
                                 Integer... moreValues)
Description copied from interface: Property
Is numeric property equal to given long number?

Specified by:
equalTo in interface Property

equalTo

public CompleteCondition equalTo(Date date,
                                 Date... moreValues)
Description copied from interface: Property
Is date property same as given date?

Specified by:
equalTo in interface Property

equalTo

public CompleteCondition equalTo(Duration distanceFromNow,
                                 Duration... moreValues)
Description copied from interface: Property
Is date property same as date distant from now by given period of time?

Specified by:
equalTo in interface Property

greaterOrEqualTo

public CompleteCondition greaterOrEqualTo(Double number)
Description copied from interface: Property
Is numeric property greater or equal to given number?

Specified by:
greaterOrEqualTo in interface Property

greaterOrEqualTo

public CompleteCondition greaterOrEqualTo(Long number)
Description copied from interface: Property
Is numeric property greater or equal to given number?

Specified by:
greaterOrEqualTo in interface Property

greaterOrEqualTo

public CompleteCondition greaterOrEqualTo(Integer number)
Description copied from interface: Property
Is numeric property greater or equal to given number?

Specified by:
greaterOrEqualTo in interface Property

greaterThan

public CompleteCondition greaterThan(Double number)
Description copied from interface: Property
Is numeric property greater than given number?

Specified by:
greaterThan in interface Property

greaterThan

public CompleteCondition greaterThan(Long number)
Description copied from interface: Property
Is numeric property greater than given number?

Specified by:
greaterThan in interface Property

greaterThan

public CompleteCondition greaterThan(Integer number)
Description copied from interface: Property
Is numeric property greater than given number?

Specified by:
greaterThan in interface Property

lessOrEqualTo

public CompleteCondition lessOrEqualTo(Double number)
Description copied from interface: Property
Is numeric property less or equal to given number?

Specified by:
lessOrEqualTo in interface Property

lessOrEqualTo

public CompleteCondition lessOrEqualTo(Long number)
Description copied from interface: Property
Is numeric property less or equal to given number?

Specified by:
lessOrEqualTo in interface Property

lessOrEqualTo

public CompleteCondition lessOrEqualTo(Integer number)
Description copied from interface: Property
Is numeric property less or equal to given number?

Specified by:
lessOrEqualTo in interface Property

lessThan

public CompleteCondition lessThan(Double number)
Description copied from interface: Property
Is numeric property less than given number?

Specified by:
lessThan in interface Property

lessThan

public CompleteCondition lessThan(Long number)
Description copied from interface: Property
Is numeric property less than given number?

Specified by:
lessThan in interface Property

lessThan

public CompleteCondition lessThan(Integer number)
Description copied from interface: Property
Is numeric property less than given number?

Specified by:
lessThan in interface Property

lexicalAfter

public CompleteCondition lexicalAfter(String literal)
Description copied from interface: Property
Is textual property lexically after (greater than) given literal?

Specified by:
lexicalAfter in interface Property

lexicalBefore

public CompleteCondition lexicalBefore(String literal)
Description copied from interface: Property
Is textual property lexically before (less than) given literal?

Specified by:
lexicalBefore in interface Property

lexicalNotAfter

public CompleteCondition lexicalNotAfter(String literal)
Description copied from interface: Property
Is textual property lexically not after (less or equal to) given literal?

Specified by:
lexicalNotAfter in interface Property

lexicalNotBefore

public CompleteCondition lexicalNotBefore(String literal)
Description copied from interface: Property
Is textual property lexically not before (greater or equal to) given literal?

Specified by:
lexicalNotBefore in interface Property

notAfter

public CompleteCondition notAfter(Date date)
Description copied from interface: Property
Is date property not after (less or equal to) given date?

Specified by:
notAfter in interface Property

notBefore

public CompleteCondition notBefore(Date date)
Description copied from interface: Property
Is date property not before (greater or equal to) given date?

Specified by:
notBefore in interface Property

notEqualTo

public CompleteCondition notEqualTo(String literalOrPattern)
Description copied from interface: Property
Is textual property different than given literal or not matching given pattern?

Specified by:
notEqualTo in interface Property

notEqualTo

public CompleteCondition notEqualTo(Double number)
Description copied from interface: Property
Is numeric property different than given double number?

Specified by:
notEqualTo in interface Property

notEqualTo

public CompleteCondition notEqualTo(Long number)
Description copied from interface: Property
Is numeric property different than given long number?

Specified by:
notEqualTo in interface Property

notEqualTo

public CompleteCondition notEqualTo(Integer number)
Description copied from interface: Property
Is numeric property different than given int number?

Specified by:
notEqualTo in interface Property

notEqualTo

public CompleteCondition notEqualTo(Date date)
Description copied from interface: Property
Is date property different than given date?

Specified by:
notEqualTo in interface Property

after

public CompleteCondition after(Duration distanceFromNow)
Description copied from interface: Property
Is date property after (greater than) date distant from now by given period of time?

Specified by:
after in interface Property

before

public CompleteCondition before(Duration distanceFromNow)
Description copied from interface: Property
Is date property before (less than) date distant from now by given period of time?

Specified by:
before in interface Property

notAfter

public CompleteCondition notAfter(Duration distanceFromNow)
Description copied from interface: Property
Is date property not after (less or equal to) date distant from now by given period of time?

Specified by:
notAfter in interface Property

notBefore

public CompleteCondition notBefore(Duration distanceFromNow)
Description copied from interface: Property
Is date property not before (greater or equal to) date distant from now by given period of time?

Specified by:
notBefore in interface Property

notEqualTo

public CompleteCondition notEqualTo(Duration distanceFromNow)
Description copied from interface: Property
Is date property different than date distant from now by given period of time?

Specified by:
notEqualTo in interface Property

condition

protected CompleteCondition condition(String operator,
                                      Object value,
                                      Object... moreValues)

and

public PartialCondition and()
Description copied from interface: CompleteCondition
Conjunct current expression with another

Specified by:
and in interface CompleteCondition

and

public Property and(String name)
Description copied from interface: CompleteCondition
shortcut for and().is()

Specified by:
and in interface CompleteCondition

or

public PartialCondition or()
Description copied from interface: CompleteCondition
Disjunct current expression with another

Specified by:
or in interface CompleteCondition

or

public Property or(String name)
Description copied from interface: CompleteCondition
shortcut for or().is()

Specified by:
or in interface CompleteCondition

wrap

public CompleteCondition wrap()
Description copied from interface: CompleteCondition
Wraps the current expression in ()

Specified by:
wrap in interface CompleteCondition

and

public CompleteCondition and(CompleteCondition c1,
                             CompleteCondition c2,
                             CompleteCondition... cn)
Description copied from interface: PartialCondition
Conjunct multiple expressions

Specified by:
and in interface PartialCondition

or

public CompleteCondition or(CompleteCondition c1,
                            CompleteCondition c2,
                            CompleteCondition... cn)
Description copied from interface: PartialCondition
Disjunct multiple expressions

Specified by:
or in interface PartialCondition

and

public CompleteCondition and(List<CompleteCondition> conditions)
Description copied from interface: PartialCondition
Conjunct multiple expressions

Specified by:
and in interface PartialCondition

or

public CompleteCondition or(List<CompleteCondition> conditions)
Description copied from interface: PartialCondition
Disjunct multiple expressions

Specified by:
or in interface PartialCondition

conditionsList

protected CompleteCondition conditionsList(String op,
                                           List<CompleteCondition> conditions)

is

public Property is(String property)
Description copied from interface: PartialCondition
Get property of inspected entity type

Specified by:
is in interface PartialCondition

toString

protected String toString(Object value)

toFiqlPrimitiveCondition

protected String toFiqlPrimitiveCondition(ConditionType type)

Apache CXF API

Apache CXF