Class TransformerContext

java.lang.Object
com.onenetwork.platform.integ.TransformerContext
Direct Known Subclasses:
CsvTransformContext, JsonTransformerContext

public class TransformerContext
extends java.lang.Object
Base context for various transformers (including CSV, JSON, etc)
  • Constructor Details

  • Method Details

    • getLocale

      public java.util.Locale getLocale()
      Returns:
      the user locale
    • getFields

      public java.util.List<? extends Field> getFields()
      Returns:
      a list of fields which are governing the transform - for example, in a CSV transform, this will contain the list of all format fields + derived fields
    • getPlatformUserContext

      public PlatformUserContext getPlatformUserContext()
      Returns the platform user's context
      Returns:
    • getInputFile

      @Deprecated public java.io.File getInputFile()
      Deprecated.
      Use getInputFileResource() to read input file in storage independent fashion
      When the source is coming from a file, provides a path to that file. May not always be available as some inputs are not file-based.
    • setInputFile

      @Deprecated public void setInputFile​(java.io.File f)
      Deprecated.
      When the source is coming from a file, provides a path to that file. May not always be available as some inputs are not file-based.
    • getInputFileResource

      public SharedStorageServiceResource getInputFileResource()
      When the source is coming from a file, provides a path to that file. May not always be available as some inputs are not file-based.
    • setInputFileResource

      public void setInputFileResource​(SharedStorageServiceResource inputFileResource)
      When the source is coming from a file, provides a path to that file. May not always be available as some inputs are not file-based.