Package org.geotools.filter.capability
Class FunctionNameImpl
Object
OperatorImpl
FunctionNameImpl
- All Implemented Interfaces:
FunctionName,Operator
Implementation of the FunctionName interface.
- Author:
- Justin Deoliveira, The Open Planning Project
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionNameImpl(String name, int argumentCount) FunctionNameImpl(String name, int argumentCount, String... argumentsNames) FunctionNameImpl(String name, int argumentCount, List<String> argumentsNames) FunctionNameImpl(String name, Class<?> returnType, Parameter<?>... arguments) FunctionNameImpl(String name, String... argumentsNames) FunctionNameImpl(String name, List<String> argumentsNames) FunctionNameImpl(String name, Parameter<?> retern, List<Parameter<?>> arguments) FunctionNameImpl(String name, Parameter<?> retern, Parameter<?>... arguments) FunctionNameImpl(Name name, int argumentCount) FunctionNameImpl(Name name, int argumentCount, String... argumentsNames) FunctionNameImpl(Name name, int argumentCount, List<String> argumentsNames) FunctionNameImpl(Name name, Class<?> returnType, Parameter<?>... arguments) FunctionNameImpl(Name name, String... argumentsNames) FunctionNameImpl(Name name, List<String> argumentsNames) FunctionNameImpl(Name name, Parameter<?> retern, List<Parameter<?>> arguments) FunctionNameImpl(Name name, Parameter<?> retern, Parameter<?>... arguments) FunctionNameImpl(FunctionName copy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals should be implemented simply in terms of getName()intNumber of arguments the function accepts.Optional ArgumentNames.Arguments for the function accepts.The qualified name of the function.getName()Name of supported Operator.Parameter<?>Return type of the function.inthashCode()HashCode should be implemented simply in terms of getName().static <T> Parameter<T>Named parameter (argument or result).static <T> Parameter<T>Named parameter (argument or result).static <T> Parameter<T>Methods inherited from class OperatorImpl
setName, toString
-
Constructor Details
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
FunctionNameImpl
-
-
Method Details
-
getFunctionName
Description copied from interface:FunctionNameThe qualified name of the function.Client code should this method over
Operator.getName()to handle qualified names.- Specified by:
getFunctionNamein interfaceFunctionName
-
getName
Description copied from interface:OperatorName of supported Operator.Each filter subclass has an associated name (such as BBOX or EqualsTo), you can use this name to determine if a matching Operator is defined as part of FilterCapabilities.
- Specified by:
getNamein interfaceOperator- Overrides:
getNamein classOperatorImpl
-
getArgumentCount
public int getArgumentCount()Description copied from interface:FunctionNameNumber of arguments the function accepts.- Use a positive number to indicate the number of arguments. Example:
add( number1, number2 ) = 2 - Use a negative number to indicate a minimum number: Example:
concat( str1, str2,... ) has -2
<xsd:attribute name="nArgs" type="xsd:string" use="required"/>
This value is derived from
FunctionName.getArguments()- Specified by:
getArgumentCountin interfaceFunctionName
- Use a positive number to indicate the number of arguments. Example:
-
getArguments
Description copied from interface:FunctionNameArguments for the function accepts.- Specified by:
getArgumentsin interfaceFunctionName
-
getReturn
Description copied from interface:FunctionNameReturn type of the function.- Specified by:
getReturnin interfaceFunctionName
-
hashCode
public int hashCode()Description copied from interface:OperatorHashCode should be implemented simply in terms of getName().- Specified by:
hashCodein interfaceOperator- Overrides:
hashCodein classOperatorImpl
-
equals
Description copied from interface:OperatorEquals should be implemented simply in terms of getName()- Specified by:
equalsin interfaceOperator- Overrides:
equalsin classOperatorImpl
-
getArgumentNames
Optional ArgumentNames.This is a fixed length list the same size as getArgumentCount().
- Specified by:
getArgumentNamesin interfaceFunctionName- Returns:
- Argument names (for documentation purposes) if known
-
parameter
Named parameter (argument or result).- Parameters:
name- name of parametertype- type of parameter- Returns:
- parameter description
-
parameter
Named parameter (argument or result).- Parameters:
name- name of parametertype- type of parametermin- multiplicitymax- multiplicity- Returns:
- parameter description
-
parameter
public static <T> Parameter<T> parameter(String name, Class<T> type, String title, String description) - Parameters:
name- name of parametertype- type of parametertitle- human readable titledescription- human readable description- Returns:
- parameter description
-