Class BasicFieldTransformer.Operation

java.lang.Object
com.northconcepts.datapipeline.transform.BasicFieldTransformer.Operation
Direct Known Subclasses:
BasicFieldTransformer.SingleValueOperation
Enclosing class:
BasicFieldTransformer

public abstract static class BasicFieldTransformer.Operation extends Object
A named step that a BasicFieldTransformer applies to each of its fields.
  • Constructor Details

    • Operation

      public Operation(String name)
      Creates an operation whose name is used in its string form and in exception details.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addExceptionProperties

      public DataException addExceptionProperties(DataException exception)
      Adds this operation's details to an exception raised while it runs; returns the same exception.
    • apply

      protected abstract void apply(Field field) throws Throwable
      Applies this operation to the field, updating its value in place.
      Throws:
      Throwable