Package org.apache.poi.ss.formula.eval

Examples of org.apache.poi.ss.formula.eval.NotImplementedException


    try {
      String sheetName = _workbook.getSheetName(sheetIndex);
      CellReference cr = new CellReference(sheetName, rowIndex, columnIndex, false, false);
      String msg =  "Error evaluating cell " + cr.formatAsString();
      return new NotImplementedException(msg, inner);
    } catch (Exception e) {
      // avoid bombing out during exception handling
      e.printStackTrace();
      return inner; // preserve original exception
    }
View Full Code Here


        public NotImplemented(String functionName) {
            _functionName = functionName;
        }

        public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
            throw new NotImplementedException(_functionName);
        }
View Full Code Here

      case 9: return subtotalInstance(AggregateFunction.SUM);
      case 10: throw new NotImplementedFunctionException("VAR");
      case 11: throw new NotImplementedFunctionException("VARP");
    }
    if (functionCode > 100 && functionCode < 112) {
      throw new NotImplementedException("SUBTOTAL - with 'exclude hidden values' option");
    }
    throw EvaluationException.invalidValue();
  }
View Full Code Here

    try {
      String sheetName = _workbook.getSheetName(sheetIndex);
      CellReference cr = new CellReference(sheetName, rowIndex, columnIndex, false, false);
      String msg =  "Error evaluating cell " + cr.formatAsString();
      return new NotImplementedException(msg, inner);
    } catch (Exception e) {
      // avoid bombing out during exception handling
      e.printStackTrace();
      return inner; // preserve original exception
    }
View Full Code Here

    public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos) {
        return toAppendTo.append(format((Number)obj));
    }

    public Object parseObject(String source, ParsePosition pos) {
        throw new NotImplementedException("Reverse parsing not supported");
    }
View Full Code Here

*/
public final class Indirect implements FreeRefFunction {

  public ValueEval evaluate(Eval[] args, EvaluationWorkbook workbook, int srcCellSheet, int srcCellRow, int srcCellCol) {
    // TODO - implement INDIRECT()
    throw new NotImplementedException("INDIRECT");
  }
View Full Code Here

  public NotImplementedFunction(String name) {
    _functionName = name;
  }
 
  public Eval evaluate(Eval[] operands, int srcRow, short srcCol) {
    throw new NotImplementedException(_functionName);
  }
View Full Code Here

   
    try {
      String sheetName = _workbook.getSheetName(sheetIndex);
      CellReference cr = new CellReference(sheetName, rowIndex, columnIndex, false, false);
      String msg =  "Error evaluating cell " + cr.formatAsString();
      return new NotImplementedException(msg, inner);
    } catch (Exception e) {
      // avoid bombing out during exception handling
      e.printStackTrace();
      return inner; // preserve original exception
    }
View Full Code Here

                    HSSFRow row = worksheet.getRow(0);
                    HSSFCell cellB = row.getCell(0);
                    BusinessPartner bpp = new BusinessPartner();
                    bpp.setName(cellB.getStringCellValue());
                    // TODO - To be completed
                    throw new NotImplementedException("FileExcelReader : bpp.persist()");
                    // FIXME bpp.persist();
                } else {
                    // Read all line in the current sheet
                    for (int i = 3; i < 100; i++) {
                        HSSFRow row = worksheet.getRow(i);
                        HSSFCell cellB = row.getCell(0);

                        BusinessPartner bpp = new BusinessPartner();
                        bpp.setName(cellB.getStringCellValue());
                        // FIXME : bpp.persist();
                        // TODO - To be completed
                        throw new NotImplementedException("FileExcelReader : bpp.persist()");
                    }
                }
            }
        } catch (FileNotFoundException e) {
            LOGGER.error(e.getLocalizedMessage());
View Full Code Here

  public NotImplementedFunction(String name) {
    _functionName = name;
  }

  public ValueEval evaluate(ValueEval[] operands, int srcRow, short srcCol) {
    throw new NotImplementedException(_functionName);
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.ss.formula.eval.NotImplementedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.