org.gcube.dataaccess.spql.model.where
Class Condition

java.lang.Object
  extended by org.gcube.dataaccess.spql.model.where.Condition
All Implemented Interfaces:
CheckableElement

public class Condition
extends Object
implements CheckableElement

Author:
"Federico De Faveri defaveri@isti.cnr.it"

Field Summary
protected  RelationalOperator operator
           
protected  ConditionParameter parameter
           
protected  ParsableValue<?> value
           
 
Constructor Summary
Condition()
           
Condition(ConditionParameter parameter, RelationalOperator operator, ParsableValue<?> value)
           
 
Method Summary
 List<QueryError> check()
           
 RelationalOperator getOperator()
           
 ConditionParameter getParameter()
           
 ParsableValue<?> getValue()
           
 void setOperator(RelationalOperator operator)
           
 void setParameter(ConditionParameter parameter)
           
 void setValue(ParsableValue<?> value)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parameter

protected ConditionParameter parameter

operator

protected RelationalOperator operator

value

protected ParsableValue<?> value
Constructor Detail

Condition

public Condition()

Condition

public Condition(ConditionParameter parameter,
                 RelationalOperator operator,
                 ParsableValue<?> value)
Parameters:
parameter -
operator -
value -
Method Detail

getParameter

public ConditionParameter getParameter()
Returns:
the parameter

setParameter

public void setParameter(ConditionParameter parameter)
Parameters:
parameter - the parameter to set

getOperator

public RelationalOperator getOperator()
Returns:
the operator

setOperator

public void setOperator(RelationalOperator operator)
Parameters:
operator - the operator to set

getValue

public ParsableValue<?> getValue()
Returns:
the value

setValue

public void setValue(ParsableValue<?> value)
Parameters:
value - the value to set

toString

public String toString()

Overrides:
toString in class Object

check

public List<QueryError> check()
Specified by:
check in interface CheckableElement


Copyright © 2013. All Rights Reserved.