Class URLEncodeFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- URLEncodeFunction
-
- All Implemented Interfaces:
Expression
,Function
,FunctionExpression
,Factory
public class URLEncodeFunction extends FunctionExpressionImpl
URL encodes a string.This function expects:
- Literal: String to be URL encoded
- Literal: (Optional) Boolean indicating if string should be form URL encoded (defaults to false)
- Author:
- Billy Newman (BIT Systems)
- See Also:
URLEncoder.encode(String)
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionName
NAME
The FunctionName-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description URLEncodeFunction()
Create a new FilterFunction_strURLEncode instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
evaluate(Object feature)
URL encode the string.-
Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Field Detail
-
NAME
public static FunctionName NAME
The FunctionName
-
-
Method Detail
-
evaluate
public Object evaluate(Object feature)
URL encode the string.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- The URL encoded string
-
-