Package org.geotools.mbstyle.function
Class StringTransformFunction
Object
ExpressionAbstract
FunctionImpl
StringTransformFunction
- All Implemented Interfaces:
- Expression,- Function
Function that takes an input and applies a text transformation (one of "lowercase", "uppercase", or "none"). The
 default transformation is "none". 
 
ECQL Examples:
ECQL Examples:
  StringTransform('SoMeString', 'uppercase') evaluates to 'SOMESTRING'
  StringTransform('SoMeString', 'lowercase') evaluates to 'somestring'
  StringTransform('SoMeString', 'none')      evaluates to 'SoMeString'
 - 
Field SummaryFieldsFields inherited from class FunctionImplfunctionNameFields inherited from interface ExpressionNIL
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class FunctionImplaccept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
- 
Field Details- 
NAME
 
- 
- 
Constructor Details- 
StringTransformFunctionpublic StringTransformFunction()
 
- 
- 
Method Details- 
evaluateDescription copied from class:FunctionImplDefault implementation simply returns the fallbackValue.Please override this method to produce a value based on the provided arguments. - Specified by:
- evaluatein interface- Expression
- Overrides:
- evaluatein class- FunctionImpl
- Parameters:
- object- Object being evaluated; often a Feature
- Returns:
- value for the provided object
 
- 
evaluateDescription copied from class:ExpressionAbstractDefault implementation delegates handling of context conversion to Converters utility class.Subclasses are expected to make use of the Converters utility class (as the easiest way to provide value morphing in conformance with the Filter specification). - Specified by:
- evaluatein interface- Expression
- Overrides:
- evaluatein class- ExpressionAbstract
- Type Parameters:
- T- The type of the returned object.
- Parameters:
- object- The object to evaluate the expression against.
- context- The type of the resulting value of the expression.
- Returns:
- Evaluates the given expression based on the content of the given object an an instance of
     context.
 
 
-