Class TLcdOGCScalarFilterCapabilities
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.capabilities.TLcdOGCScalarFilterCapabilities
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Class defining a set of scalar-based filter capabilities.
This can include logical operators, comparison operators, arithmetic operators and/or functions.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
"PropertyIsBetween" comparison capabilitystatic final String
"PropertyIsEqualTo" comparison capabilitystatic final String
"PropertyIsGreaterThan" comparison capabilitystatic final String
"PropertyIsGreaterThanOrEqualTo" comparison capabilitystatic final String
"PropertyIsLessThan" comparison capabilitystatic final String
"PropertyIsLessThanOrEqualTo" comparison capabilitystatic final String
"PropertyIsLike" comparison capabilitystatic final String
"PropertyIsNotEqualTo" comparison capabilitystatic final String
"PropertyIsNull" comparison capabilitystatic final String
Filter capability that groups all the other ones -
Constructor Summary
ConstructorDescriptionDefault constructorTLcdOGCScalarFilterCapabilities
(boolean aLogicalOperatorsSupported, String[] aComparisonOperators, String[] aArithmeticOperators, String[] aArithmeticFunctions) Constructs a scalar filter capabilities object with the right parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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
Returns the number of arithmetic functions that are registered.getArithmeticOperator
(int index) Returns the name of the arithmetic operator at aIndex in the list of arithmetic operators that are registered.int
Returns the number of arithmetic operators that are registered.getComparisonOperator
(int index) Returns the name of the comparison operator at aIndex in the list of comparison operators that are registered.int
Returns the number of comparison operators that are registered.boolean
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.
-
Field Details
-
SIMPLE_ARITHMETIC
Filter capability that groups all the other ones- See Also:
-
LESS_THAN
"PropertyIsLessThan" comparison capability- See Also:
-
GREATER_THAN
"PropertyIsGreaterThan" comparison capability- See Also:
-
LESS_THAN_EQUAL_TO
"PropertyIsLessThanOrEqualTo" comparison capability- See Also:
-
GREATER_THAN_EQUAL_TO
"PropertyIsGreaterThanOrEqualTo" comparison capability- See Also:
-
EQUAL_TO
"PropertyIsEqualTo" comparison capability- See Also:
-
NOT_EQUAL_TO
"PropertyIsNotEqualTo" comparison capability- See Also:
-
LIKE
"PropertyIsLike" comparison capability- See Also:
-
BETWEEN
"PropertyIsBetween" comparison capability- See Also:
-
NULL_CHECK
"PropertyIsNull" comparison capability- See Also:
-
-
Constructor Details
-
TLcdOGCScalarFilterCapabilities
public TLcdOGCScalarFilterCapabilities()Default constructor -
TLcdOGCScalarFilterCapabilities
public TLcdOGCScalarFilterCapabilities(boolean aLogicalOperatorsSupported, String[] aComparisonOperators, String[] aArithmeticOperators, String[] aArithmeticFunctions) Constructs a scalar filter capabilities object with the right parameters.- Parameters:
aLogicalOperatorsSupported
-aComparisonOperators
-aArithmeticOperators
-aArithmeticFunctions
-
-
-
Method Details
-
setSupportLogicalOperators
public void setSupportLogicalOperators(boolean aSupportLogicalOperators) Specify whether logical operators are supported.- Parameters:
aSupportLogicalOperators
-
-
isSupportLogicalOperators
public boolean isSupportLogicalOperators()Returns true if the filter capabilities indicate the possibility to use logical operators.- Returns:
- true if the filter capabilities indicate the possibility to use logical operators.
-
getComparisonOperatorCount
public int getComparisonOperatorCount()Returns the number of comparison operators that are registered.- Returns:
- the number of comparison operators that are registered.
-
getComparisonOperators
-
getComparisonOperator
Returns the name of the comparison operator at aIndex in the list of comparison operators that are registered.- Parameters:
index
-- Returns:
- the name of the comparison operator at aIndex in the list of comparison operators that are registered.
-
addComparisonOperator
Add a comparison operator to the list of supported comparison operators.- Parameters:
aOperator
-
-
removeComparisonOperator
Remove the comparison operator aOperator from the list of supported comparison operators.- Parameters:
aOperator
-
-
getArithmeticOperatorCount
public int getArithmeticOperatorCount()Returns the number of arithmetic operators that are registered.- Returns:
- the number of arithmetic operators that are registered.
-
getArithmeticOperators
-
getArithmeticOperator
Returns the name of the arithmetic operator at aIndex in the list of arithmetic operators that are registered.- Parameters:
index
-- Returns:
- the name of the arithmetic operator at aIndex in the list of arithmetic operators that are registered.
-
addArithmeticOperator
Add the arithmetic operator aOperator to the list of supported operators.- Parameters:
aOperator
-
-
removeArithmeticOperator
Remove the arithmetic operator aOperator from the list of supported operators.- Parameters:
aOperator
-
-
getArithmeticFunctionCount
public int getArithmeticFunctionCount()Returns the number of arithmetic functions that are registered.- Returns:
- the number of arithmetic functions that are registered.
-
getArithmeticFunctions
-
getArithmeticFunction
Returns the name of the arithmetic function at aIndex in the list of arithmetic functions that are registered.- Parameters:
index
-- Returns:
- the name of the arithmetic function at aIndex in the list of arithmetic functions that are registered.
-
getArithmeticFunctionArgumentCount
Returns the number of arguments of the arithmetic function with name aFunction.- Parameters:
aFunction
-- Returns:
- the number of arguments of the arithmetic function with name aFunction.
-
addArithmeticFunction
Adds the arithmetic function with name aFunction and number of arguments equal to aNumberOfArguments to the list of supported arithmetic functions.- Parameters:
aFunction
-aNumberOfArguments
-
-
removeArithmeticFunction
Remove the arithmetic function with name aFunctionfrom the list of supported arithmetic functions.- Parameters:
aFunction
-
-