public class SpreadsheetUtils extends Object
Constructor and Description |
---|
SpreadsheetUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getColumnIndex(String column)
Converts a column label to a (0 based) column index.
|
static String |
getColumnLabel(int column)
Converts a (0 based) column index to a column label.
|
static String |
getPortName(int columnIndex,
com.fasterxml.jackson.databind.JsonNode jsonNode)
Returns the port name for the column index.
|
static String |
getPortName(String columnLabel,
com.fasterxml.jackson.databind.JsonNode jsonNode)
Returns the port name for the column label.
|
static Range |
getRange(com.fasterxml.jackson.databind.JsonNode jsonNode) |
public static int getColumnIndex(String column)
Label must match the format [A-Z]+ for result to be valid.
column
- the column labelpublic static String getColumnLabel(int column)
column
- the (0 based) column indexpublic static String getPortName(String columnLabel, com.fasterxml.jackson.databind.JsonNode jsonNode)
columnLabel
- the column labelcolumnNameMapping
- public static String getPortName(int columnIndex, com.fasterxml.jackson.databind.JsonNode jsonNode)
columnIndex
- the column indexcolumnNameMapping
- public static Range getRange(com.fasterxml.jackson.databind.JsonNode jsonNode)
jsonNode
- Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.