Class BasicFieldTransformer.StringOperation
java.lang.Object
com.northconcepts.datapipeline.transform.BasicFieldTransformer.Operation
com.northconcepts.datapipeline.transform.BasicFieldTransformer.SingleValueOperation
com.northconcepts.datapipeline.transform.BasicFieldTransformer.StringOperation
- All Implemented Interfaces:
INodeVisitor
- Enclosing class:
BasicFieldTransformer
public abstract static class BasicFieldTransformer.StringOperation
extends BasicFieldTransformer.SingleValueOperation
A
BasicFieldTransformer.SingleValueOperation that transforms the string form of each value into a new string.-
Field Summary
Fields inherited from class com.northconcepts.datapipeline.transform.BasicFieldTransformer.SingleValueOperation
applyToNulls, returnType -
Constructor Summary
ConstructorsConstructorDescriptionStringOperation(String name) Creates a string operation that skips null values.StringOperation(String name, boolean applyToNulls) Creates a string operation that receives null values (asnull) only ifapplyToNullsis true. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectapplyImpl(SingleValue value) Returns the replacement forinput; returninputitself to leave it unchanged ornullto store a null ofreturnType.protected abstract StringReturns the transformed string ornullto store a null;valueisnullonly for operations that apply to nulls.Methods inherited from class com.northconcepts.datapipeline.transform.BasicFieldTransformer.SingleValueOperation
addExceptionProperties, apply, applyToArrayValue, applyToFieldValue, applyToNullArray, endArray, endArrayValue, endField, endFieldValue, endRecord, singleValue, startArray, startArrayValue, startField, startFieldValue, startRecordMethods inherited from class com.northconcepts.datapipeline.transform.BasicFieldTransformer.Operation
toString
-
Constructor Details
-
StringOperation
Creates a string operation that receives null values (asnull) only ifapplyToNullsis true. -
StringOperation
Creates a string operation that skips null values.
-
-
Method Details
-
applyImpl
Description copied from class:BasicFieldTransformer.SingleValueOperationReturns the replacement forinput; returninputitself to leave it unchanged ornullto store a null ofreturnType.- Specified by:
applyImplin classBasicFieldTransformer.SingleValueOperation- Throws:
Throwable
-
applyImpl
Returns the transformed string ornullto store a null;valueisnullonly for operations that apply to nulls.- Throws:
Throwable
-