Package com.tibco.ep.tcs.runtime.config
Class TransformationConfig
- java.lang.Object
-
- com.tibco.ep.tcs.runtime.config.BaseConfig
-
- com.tibco.ep.tcs.runtime.config.TransformationConfig
-
- Direct Known Subclasses:
AdditionalTransformationConfig,InputTransformationConfig
public class TransformationConfig extends BaseConfig
A generic transformation. Transformations are used in several places in a TCS flow: along flow edges, and within block meta-data to produce configuration required by block implementations. Subclasses further can enhance the transformation as an
inputoradditionaltransformation.
-
-
Constructor Summary
Constructors Constructor Description TransformationConfig()Create a new empty transformation.TransformationConfig(ITransformation source)Create a new transformation from the specified interface source.TransformationConfig(com.typesafe.config.Config config)Create a new transformation from HOCON configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillMap(Map<String,Object> props)Add this object's properties to the specified map.StringgetExpression()Return the output expression, in EventFlow expression syntax.StringgetFieldName()Return the name of the field being operated on.TransformationConfigsetExpression(String expression)Set the output expression, in EventFlow expression syntax.TransformationConfigsetFieldName(String fieldName)Set the name of the field being operated on.-
Methods inherited from class com.tibco.ep.tcs.runtime.config.BaseConfig
toHOCON
-
-
-
-
Constructor Detail
-
TransformationConfig
public TransformationConfig()
Create a new empty transformation.
-
TransformationConfig
public TransformationConfig(ITransformation source)
Create a new transformation from the specified interface source.
- Parameters:
source- source instance
-
TransformationConfig
public TransformationConfig(com.typesafe.config.Config config)
Create a new transformation from HOCON configuration.
- Parameters:
config- HOCON representation of the transformation
-
-
Method Detail
-
getFieldName
public String getFieldName()
Return the name of the field being operated on.
- Returns:
- field
-
setFieldName
public TransformationConfig setFieldName(String fieldName)
Set the name of the field being operated on.
- Parameters:
fieldName- field name- Returns:
- this object
-
getExpression
public String getExpression()
Return the output expression, in EventFlow expression syntax.
- Returns:
- output expression
-
setExpression
public TransformationConfig setExpression(String expression)
Set the output expression, in EventFlow expression syntax.
- Parameters:
expression- output expression- Returns:
- this object
-
fillMap
protected void fillMap(Map<String,Object> props)
Add this object's properties to the specified map.
- Specified by:
fillMapin classBaseConfig- Parameters:
props- map to fill
-
-