Interface GeneratorContext


public interface GeneratorContext
The context for generator.
  • Method Details

    • getInputRowCounts

      long getInputRowCounts(String inputId)
      Returns the row count of a specific input using ID.
      Parameters:
      inputId - ID of the input node to get row count
      Returns:
      Row count of specified input
    • getFirstInputRowCount

      long getFirstInputRowCount()
      Returns the row count of the first input.
      Returns:
      Row count of the first input
    • write

      void write(Object exportData)
      Writes data to file context.
      Parameters:
      exportData - Data to write
    • getFirstInputValue

      String getFirstInputValue(String columnName, long rowIndex)
      Returns the value of type String at a specific column and row from first input.
      Parameters:
      columnName - Column's name of value to be retrieved
      rowIndex - Row index of value to be retrieved
      Returns:
      The value in selected column and row from first input
    • getFirstInputValue

      <T> T getFirstInputValue(String columnName, long rowIndex, Class<T> type)
      Returns the value of specified type at a specific column and row from first input.
      Type Parameters:
      T - This describes the type parameter
      Parameters:
      columnName - Column's name
      rowIndex - Row index of value to be retrieved
      type - The class of the value's type
      Returns:
      The value with specified type in selected column and row from first input
    • getInputValue

      String getInputValue(String inputId, String columnName, long rowIndex)
      Returns the value of type String at a specific column and row from a specific input.
      Parameters:
      inputId - ID of the input node to get value from
      columnName - Column's name of value to be retrieved
      rowIndex - Row index of value to be retrieved
      Returns:
      The value in selected column and row from the specified input
    • getInputValue

      <T> T getInputValue(String inputId, String columnName, long rowIndex, Class<T> type)
      Returns the value of specified type from a specific input, column and row.
      Type Parameters:
      T - This describes the type parameter
      Parameters:
      inputId - ID of the input node to get value from
      columnName - Column's name of value to be retrieved
      rowIndex - Row index of value to be retrieved
      type - The class of the value's type
      Returns:
      The value with specified type in selected input, column and row
    • getChooserValue

      <T> T getChooserValue(String customChooserId, Class<T> type)
      Returns the value from a specific custom chooser
      Type Parameters:
      T - This describes the type parameter
      Parameters:
      customChooserId - The custom chooser's ID
      type - The class of the value's type
      Returns:
      The value from the specified custom chooser
    • getDefaultInputContext

      GeneratorInputContext getDefaultInputContext()
      Returns the default input context
      Returns:
      Default input context
    • getAdditionalInputContext

      GeneratorInputContext getAdditionalInputContext(String inputId)
      Returns a specific input node using ID
      Parameters:
      inputId - ID of the input node
      Returns:
      The input context with the specified ID