Interface GeneratorContext
public interface GeneratorContext
The context for generator.
-
Method Summary
Modifier and TypeMethodDescriptiongetAdditionalInputContext(String inputId) Returns a specific input node using ID<T> TgetChooserValue(String customChooserId, Class<T> type) Returns the value from a specific custom chooserReturns the default input contextlongReturns the row count of the first input.getFirstInputValue(String columnName, long rowIndex) Returns the value of type String at a specific column and row from first input.<T> TgetFirstInputValue(String columnName, long rowIndex, Class<T> type) Returns the value of specified type at a specific column and row from first input.longgetInputRowCounts(String inputId) Returns the row count of a specific input using ID.getInputValue(String inputId, String columnName, long rowIndex) Returns the value of type String at a specific column and row from a specific input.<T> TgetInputValue(String inputId, String columnName, long rowIndex, Class<T> type) Returns the value of specified type from a specific input, column and row.voidWrites data to file context.
-
Method Details
-
getInputRowCounts
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
Writes data to file context.- Parameters:
exportData- Data to write
-
getFirstInputValue
Returns the value of type String at a specific column and row from first input.- Parameters:
columnName- Column's name of value to be retrievedrowIndex- Row index of value to be retrieved- Returns:
- The value in selected column and row from first input
-
getFirstInputValue
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 namerowIndex- Row index of value to be retrievedtype- The class of the value's type- Returns:
- The value with specified type in selected column and row from first input
-
getInputValue
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 fromcolumnName- Column's name of value to be retrievedrowIndex- Row index of value to be retrieved- Returns:
- The value in selected column and row from the specified input
-
getInputValue
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 fromcolumnName- Column's name of value to be retrievedrowIndex- Row index of value to be retrievedtype- The class of the value's type- Returns:
- The value with specified type in selected input, column and row
-
getChooserValue
Returns the value from a specific custom chooser- Type Parameters:
T- This describes the type parameter- Parameters:
customChooserId- The custom chooser's IDtype- 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
Returns a specific input node using ID- Parameters:
inputId- ID of the input node- Returns:
- The input context with the specified ID
-