Browse Source

pulled *Cell.getCellTypeEnum() to common base

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1852252 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_4_1_0
Vladislav Galas 5 years ago
parent
commit
70b4b88a3a

+ 0
- 12
src/java/org/apache/poi/hssf/usermodel/HSSFCell.java View File

{ {
return _cellType; return _cellType;
} }
/**
* get the cells type (numeric, formula or string)
* @since POI 3.15 beta 3
*/
@Deprecated
@Removal(version = "4.2")
@Override
public CellType getCellTypeEnum()
{
return getCellType();
}


/** /**
* set a numeric value for the cell * set a numeric value for the cell

+ 7
- 1
src/java/org/apache/poi/ss/usermodel/Cell.java View File

CellType getCellType(); CellType getCellType();


/** /**
* Return the cell type.
* Return the cell type. Tables in an array formula return
* {@link CellType#FORMULA} for all cells, even though the formula is only defined
* in the OOXML file for the top left cell of the array.
* <p>
* NOTE: POI does not support data table formulas.
* Cells in a data table appear to POI as plain cells typed from their cached value.
* *
* @return the cell type * @return the cell type
* @since POI 3.15 beta 3 * @since POI 3.15 beta 3
* @deprecated will be removed in 4.2
* Will be renamed to <code>getCellType()</code> when we make the CellType enum transition in POI 4.0. See bug 59791. * Will be renamed to <code>getCellType()</code> when we make the CellType enum transition in POI 4.0. See bug 59791.
*/ */
@Deprecated @Deprecated

+ 11
- 0
src/java/org/apache/poi/ss/usermodel/CellBase.java View File

import org.apache.poi.ss.util.CellAddress; import org.apache.poi.ss.util.CellAddress;
import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.ss.util.CellReference; import org.apache.poi.ss.util.CellReference;
import org.apache.poi.util.Removal;


/** /**
* Common implementation-independent logic shared by all implementations of {@link Cell}. * Common implementation-independent logic shared by all implementations of {@link Cell}.
setCellFormulaImpl(formula); setCellFormulaImpl(formula);
} }


/**
* {@inheritDoc}
*/
@Deprecated
@Removal(version = "4.2")
@Override
public final CellType getCellTypeEnum() {
return getCellType();
}

/** /**
* Implementation-specific setting the formula. Formula is not null. * Implementation-specific setting the formula. Formula is not null.
* Shall not change the value. * Shall not change the value.

+ 0
- 15
src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFCell.java View File

return _value.getType(); return _value.getType();
} }
/**
* Return the cell type.
*
* @return the cell type
* @since POI 3.15 beta 3
* @deprecated use <code>getCellType</code> instead
*/
@Deprecated
@Removal(version = "4.2")
@Override
public CellType getCellTypeEnum()
{
return getCellType();
}

/** /**
* Only valid for formula cells * Only valid for formula cells
* @return one of ({@link CellType#NUMERIC}, {@link CellType#STRING}, * @return one of ({@link CellType#NUMERIC}, {@link CellType#STRING},

+ 0
- 19
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java View File

return getBaseCellType(true); return getBaseCellType(true);
} }


/**
* Return the cell type. Tables in an array formula return
* {@link CellType#FORMULA} for all cells, even though the formula is only defined
* in the OOXML file for the top left cell of the array.
* <p>
* NOTE: POI does not support data table formulas.
* Cells in a data table appear to POI as plain cells typed from their cached value.
*
* @return the cell type
* @since POI 3.15 beta 3
* @deprecated use <code>getCellType</code> instead
*/
@Deprecated
@Removal(version = "4.2")
@Override
public CellType getCellTypeEnum() {
return getCellType();
}

/** /**
* Only valid for formula cells * Only valid for formula cells
* @return one of ({@link CellType#NUMERIC}, {@link CellType#STRING}, * @return one of ({@link CellType#NUMERIC}, {@link CellType#STRING},

Loading…
Cancel
Save