Class ExcelUtils


  • public class ExcelUtils
    extends Object
    The Class ExcelUtils.
    • Constructor Detail

      • ExcelUtils

        public ExcelUtils()
    • Method Detail

      • getNameParameter

        public static String getNameParameter​(String parameter)
        Gets the name parameter.
        Parameters:
        parameter - the parameter
        Returns:
        the name parameter
      • coordinateCalculation

        public static String coordinateCalculation​(int row,
                                                   int idColumn,
                                                   boolean isBlockColumn,
                                                   boolean isBlockRow)
        Calcolo coordinate function.
        Parameters:
        row - the row
        idColumn - the id column
        isBlockColumn - the is block column
        isBlockRow - the is block row
        Returns:
        the string
      • getKeyColumn

        public static String getKeyColumn​(org.apache.poi.ss.usermodel.Sheet sheet,
                                          String key)
        Gets the key column.
        Parameters:
        sheet - the sheet
        key - the key
        Returns:
        the key column
      • widthColumn

        public static short widthColumn​(int widthColumn)
        Width column.
        Parameters:
        widthColumn - the width column
        Returns:
        the short
      • rowHeight

        public static short rowHeight​(int rowHeight)
        Hight row.
        Parameters:
        rowHeight - the hight row
        Returns:
        the short
      • getTClass

        public static <T> Class<T> getTClass​(Object entity)
        Gets the t class.
        Type Parameters:
        T - the generic type
        Parameters:
        entity - the entity
        Returns:
        the t class
      • getTClass

        public static <T> Class<T> getTClass​(Object entity,
                                             int i)
        Gets the t class.
        Type Parameters:
        T - the generic type
        Parameters:
        entity - the entity
        i - the i
        Returns:
        the t class
      • evaluate

        public static Double evaluate​(String exprenssionIndex,
                                      String param,
                                      Number value)
        Evaluate.
        Parameters:
        exprenssionIndex - the exprenssion index
        param - the param
        value - the value
        Returns:
        the double
      • matcher

        public static Matcher matcher​(String param,
                                      String function)
        Matcher.
        Parameters:
        param - the param
        function - the function
        Returns:
        the matcher