Interface FunctionName
-
- All Superinterfaces:
Operator
- All Known Implementing Classes:
FunctionNameImpl
public interface FunctionName extends Operator
Function description provided in a filter capabilities.<xsd:complexType name="FunctionNameType"> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="nArgs" type="xsd:string" use="required"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType>
We have extended this idea to include a list of argument names to better serve interactive clients.
- Author:
- Torsten Friebe , Justin Deoliveira, The Open Planning Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getArgumentCount()
Number of arguments the function accepts.List<String>
getArgumentNames()
Argument names for documentation purposes if known.List<Parameter<?>>
getArguments()
Arguments for the function accepts.Name
getFunctionName()
The qualified name of the function.Parameter<?>
getReturn()
Return type of the function.
-
-
-
Method Detail
-
getFunctionName
Name getFunctionName()
The qualified name of the function.Client code should this method over
Operator.getName()
to handle qualified names.
-
getArgumentCount
int getArgumentCount()
Number 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
getArguments()
- Use a positive number to indicate the number of arguments. Example:
-
getArgumentNames
List<String> getArgumentNames()
Argument names for documentation purposes if known.This value is derived from
getArguments()
- Returns:
- Argument names (for documentation purposes) if known
-
getReturn
Parameter<?> getReturn()
Return type of the function.
-
-