Package net.sf.okapi.filters.openxml
Enum ExcelWorksheetTransUnitProperty
- java.lang.Object
-
- java.lang.Enum<ExcelWorksheetTransUnitProperty>
-
- net.sf.okapi.filters.openxml.ExcelWorksheetTransUnitProperty
-
- All Implemented Interfaces:
Serializable,Comparable<ExcelWorksheetTransUnitProperty>
public enum ExcelWorksheetTransUnitProperty extends Enum<ExcelWorksheetTransUnitProperty>
Enum of property keys
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CELL_REFERENCESHEET_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetColumnIndexFromCellRef(String cellReference)Returns the Column Index part from the Cell Reference.static intgetColumnIndexFromColumnRef(String columnReference)Converts a column reference from ALPHA-26 number format to 0-based base 10.StringgetKeyName()static IntegergetRowNumberFromCellRef(String cellReference)Returns the Row Number part from the Cell Reference.static ExcelWorksheetTransUnitPropertyvalueOf(String name)Returns the enum constant of this type with the specified name.static ExcelWorksheetTransUnitProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CELL_REFERENCE
public static final ExcelWorksheetTransUnitProperty CELL_REFERENCE
-
SHEET_NAME
public static final ExcelWorksheetTransUnitProperty SHEET_NAME
-
-
Method Detail
-
values
public static ExcelWorksheetTransUnitProperty[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExcelWorksheetTransUnitProperty c : ExcelWorksheetTransUnitProperty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExcelWorksheetTransUnitProperty valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getKeyName
public String getKeyName()
-
getColumnIndexFromCellRef
public static String getColumnIndexFromCellRef(String cellReference)
Returns the Column Index part from the Cell Reference. 'A1' -> A 'Z1' -> Z- Parameters:
cellReference- a cell reference.- Returns:
- the column reference.
-
getRowNumberFromCellRef
public static Integer getRowNumberFromCellRef(String cellReference)
Returns the Row Number part from the Cell Reference. 'A1' -> 1 'B1' -> 2- Parameters:
cellReference- a cell reference.- Returns:
- the column reference.
-
getColumnIndexFromColumnRef
public static int getColumnIndexFromColumnRef(String columnReference)
Converts a column reference from ALPHA-26 number format to 0-based base 10. 'A' -> 0 'Z' -> 25- Returns:
- zero based column index
-
-