public class TLcdOGCScalarFilterCapabilities extends TLcdDataObject
TLcdOGCFilterCapabilities
Modifier and Type | Field and Description |
---|---|
static String |
BETWEEN
"PropertyIsBetween" comparison capability
|
static String |
EQUAL_TO
"PropertyIsEqualTo" comparison capability
|
static String |
GREATER_THAN
"PropertyIsGreaterThan" comparison capability
|
static String |
GREATER_THAN_EQUAL_TO
"PropertyIsGreaterThanOrEqualTo" comparison capability
|
static String |
LESS_THAN
"PropertyIsLessThan" comparison capability
|
static String |
LESS_THAN_EQUAL_TO
"PropertyIsLessThanOrEqualTo" comparison capability
|
static String |
LIKE
"PropertyIsLike" comparison capability
|
static String |
NOT_EQUAL_TO
"PropertyIsNotEqualTo" comparison capability
|
static String |
NULL_CHECK
"PropertyIsNull" comparison capability
|
static String |
SIMPLE_ARITHMETIC
Filter capability that groups all the other ones
|
Constructor and Description |
---|
TLcdOGCScalarFilterCapabilities()
Default constructor
|
TLcdOGCScalarFilterCapabilities(boolean aLogicalOperatorsSupported,
String[] aComparisonOperators,
String[] aArithmeticOperators,
String[] aArithmeticFunctions)
Constructs a scalar filter capabilities object with the right parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
addArithmeticFunction(String aFunction,
int aNumberOfArguments)
Adds the arithmetic function with name aFunction and number of arguments equal to aNumberOfArguments to the list
of supported arithmetic functions.
|
void |
addArithmeticOperator(String aOperator)
Add the arithmetic operator aOperator to the list of supported operators.
|
void |
addComparisonOperator(String aOperator)
Add a comparison operator to the list of supported comparison operators.
|
String |
getArithmeticFunction(int index)
Returns the name of the arithmetic function at aIndex in the list of arithmetic functions that are registered.
|
int |
getArithmeticFunctionArgumentCount(String aFunction)
Returns the number of arguments of the arithmetic function with name aFunction.
|
int |
getArithmeticFunctionCount()
Returns the number of arithmetic functions that are registered.
|
List<String> |
getArithmeticFunctions() |
String |
getArithmeticOperator(int index)
Returns the name of the arithmetic operator at aIndex in the list of arithmetic operators that are registered.
|
int |
getArithmeticOperatorCount()
Returns the number of arithmetic operators that are registered.
|
List<String> |
getArithmeticOperators() |
String |
getComparisonOperator(int index)
Returns the name of the comparison operator at aIndex in the list of comparison operators that are registered.
|
int |
getComparisonOperatorCount()
Returns the number of comparison operators that are registered.
|
List<String> |
getComparisonOperators() |
boolean |
isSupportLogicalOperators()
Returns true if the filter capabilities indicate the possibility to use logical operators.
|
void |
removeArithmeticFunction(String aFunction)
Remove the arithmetic function with name aFunctionfrom the list
of supported arithmetic functions.
|
void |
removeArithmeticOperator(String aOperator)
Remove the arithmetic operator aOperator from the list of supported operators.
|
void |
removeComparisonOperator(String aOperator)
Remove the comparison operator aOperator from the list of supported comparison operators.
|
void |
setSupportLogicalOperators(boolean aSupportLogicalOperators)
Specify whether logical operators are supported.
|
public static final String SIMPLE_ARITHMETIC
public static final String LESS_THAN
public static final String GREATER_THAN
public static final String LESS_THAN_EQUAL_TO
public static final String GREATER_THAN_EQUAL_TO
public static final String EQUAL_TO
public static final String NOT_EQUAL_TO
public static final String LIKE
public static final String BETWEEN
public static final String NULL_CHECK
public TLcdOGCScalarFilterCapabilities()
public TLcdOGCScalarFilterCapabilities(boolean aLogicalOperatorsSupported, String[] aComparisonOperators, String[] aArithmeticOperators, String[] aArithmeticFunctions)
aLogicalOperatorsSupported
- aComparisonOperators
- aArithmeticOperators
- aArithmeticFunctions
- public void setSupportLogicalOperators(boolean aSupportLogicalOperators)
aSupportLogicalOperators
- public boolean isSupportLogicalOperators()
public int getComparisonOperatorCount()
public String getComparisonOperator(int index)
index
- public void addComparisonOperator(String aOperator)
aOperator
- public void removeComparisonOperator(String aOperator)
aOperator
- public int getArithmeticOperatorCount()
public String getArithmeticOperator(int index)
index
- public void addArithmeticOperator(String aOperator)
aOperator
- public void removeArithmeticOperator(String aOperator)
aOperator
- public int getArithmeticFunctionCount()
public String getArithmeticFunction(int index)
index
- public int getArithmeticFunctionArgumentCount(String aFunction)
aFunction
- public void addArithmeticFunction(String aFunction, int aNumberOfArguments)
aFunction
- aNumberOfArguments
- public void removeArithmeticFunction(String aFunction)
aFunction
-