Package org.geotools.mbstyle.expression
Class MBString
- Object
- 
- ExpressionAbstract
- 
- FunctionImpl
- 
- MBExpression
- 
- MBString
 
 
 
 
- 
- All Implemented Interfaces:
- Expression,- Function
 
 public class MBString extends MBExpression 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 MBExpressioncolors, decisions, featureData, ff, heatMap, json, lookUp, math, name, parse, ramps, string, transformer, types, variableBindings, zoom
 - 
Fields inherited from class FunctionImplfunctionName
 - 
Fields inherited from interface ExpressionNIL
 
- 
 - 
Constructor SummaryConstructors Constructor Description MBString(JSONArray json)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongetExpression()Will return a function base on the mbexpression string name;ExpressionstringConcat()Returns a string consisting of the concatenation of the inputs.ExpressionstringDowncase()Returns the input string converted to lowercase.ExpressionstringUpcase()Returns the input string converted to uppercase.- 
Methods inherited from class MBExpressioncanCreate, create, getName, throwInsufficientArgumentCount, throwUnexpectedArgumentCount, transformExpression, transformLiteral
 - 
Methods inherited from class FunctionImplaccept, dispatchArguments, equals, evaluate, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
 - 
Methods inherited from class ExpressionAbstractevaluate
 - 
Methods inherited from interface Expressionevaluate
 
- 
 
- 
- 
- 
Method Detail- 
stringConcatpublic Expression stringConcat() throws MBFormatException Returns a string consisting of the concatenation of the inputs. Example: ["concat", string, string, ...]: string- Returns:
- concatenate expression
- Throws:
- MBFormatException
 
 - 
stringDowncasepublic Expression 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
 
 - 
stringUpcasepublic 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
 
 - 
getExpressionpublic Expression getExpression() Will return a function base on the mbexpression string name;- Specified by:
- getExpressionin class- MBExpression
- Returns:
- expression based on mbexpression string name
 
 
- 
 
-