Interface FunctionName
- All Superinterfaces:
Operator
- All Known Implementing Classes:
FunctionNameImpl
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
Modifier and TypeMethodDescriptionintNumber of arguments the function accepts.Argument names for documentation purposes if known.Arguments for the function accepts.The qualified name of the function.Parameter<?>Return type of the function.
-
Method Details
-
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
Argument names for documentation purposes if known.This value is derived from
getArguments()- Returns:
- Argument names (for documentation purposes) if known
-
getArguments
Arguments for the function accepts. -
getReturn
Parameter<?> getReturn()Return type of the function.
-