Package org.geotools.mbstyle.expression
Class MBString
Object
ExpressionAbstract
FunctionImpl
MBExpression
MBString
- All Implemented Interfaces:
Expression,Function
This class is an extension of the MBExpression containing the functions to support MapBox Style String expressions.
String operators "concat", "upcase", and "downcase" are used to manipulate strings within a style.
-
Field Summary
Fields inherited from class MBExpression
colors, decisions, featureData, ff, heatMap, json, lookUp, math, name, parse, ramps, string, transformer, types, variableBindings, zoomFields inherited from class FunctionImpl
functionNameFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWill return a function base on the mbexpression string name;Returns a string consisting of the concatenation of the inputs.Returns the input string converted to lowercase.Returns the input string converted to uppercase.Methods inherited from class MBExpression
canCreate, create, getName, throwInsufficientArgumentCount, throwUnexpectedArgumentCount, transformExpression, transformLiteralMethods inherited from class FunctionImpl
accept, dispatchArguments, equals, evaluate, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toStringMethods inherited from class ExpressionAbstract
evaluateMethods inherited from interface Expression
evaluate
-
Constructor Details
-
MBString
public MBString(JSONArray json)
-
-
Method Details
-
stringConcat
Returns a string consisting of the concatenation of the inputs. Example: ["concat", string, string, ...]: string- Returns:
- concatenate expression
- Throws:
MBFormatException
-
stringDowncase
Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database. Example: ["downcase", string]: string- Returns:
- downcase string expression
-
stringUpcase
Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database. ["upcase", string]: string- Returns:
- uppercase string expression
-
getExpression
Will return a function base on the mbexpression string name;- Specified by:
getExpressionin classMBExpression- Returns:
- expression based on mbexpression string name
-