]> source.dussan.org Git - poi.git/commitdiff
javadocs cleanup
authorYegor Kozlov <yegor@apache.org>
Fri, 7 Nov 2008 16:57:23 +0000 (16:57 +0000)
committerYegor Kozlov <yegor@apache.org>
Fri, 7 Nov 2008 16:57:23 +0000 (16:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@712196 13f79535-47bb-0310-9956-ffa450edef68

71 files changed:
build.xml
src/java/org/apache/poi/hssf/dev/BiffViewer.java
src/java/org/apache/poi/hssf/model/Sheet.java
src/java/org/apache/poi/hssf/record/CFHeaderRecord.java
src/java/org/apache/poi/hssf/record/CFRuleRecord.java
src/java/org/apache/poi/hssf/record/ColumnInfoRecord.java
src/java/org/apache/poi/hssf/record/DBCellRecord.java
src/java/org/apache/poi/hssf/record/DVRecord.java
src/java/org/apache/poi/hssf/record/FileSharingRecord.java
src/java/org/apache/poi/hssf/record/HyperlinkRecord.java
src/java/org/apache/poi/hssf/record/NameRecord.java
src/java/org/apache/poi/hssf/record/NoteStructureSubRecord.java
src/java/org/apache/poi/hssf/record/RecordInputStream.java
src/java/org/apache/poi/hssf/record/StyleRecord.java
src/java/org/apache/poi/hssf/record/SupBookRecord.java
src/java/org/apache/poi/hssf/record/aggregates/CFRecordsAggregate.java
src/java/org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java
src/java/org/apache/poi/hssf/record/aggregates/SharedValueManager.java
src/java/org/apache/poi/hssf/record/cf/BorderFormatting.java
src/java/org/apache/poi/hssf/record/cf/CellRangeUtil.java
src/java/org/apache/poi/hssf/record/cf/FontFormatting.java
src/java/org/apache/poi/hssf/record/formula/Ptg.java
src/java/org/apache/poi/hssf/record/formula/eval/OperandResolver.java
src/java/org/apache/poi/hssf/record/formula/functions/TextFunction.java
src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
src/java/org/apache/poi/hssf/usermodel/HSSFConditionalFormatting.java
src/java/org/apache/poi/hssf/usermodel/HSSFDataValidation.java
src/java/org/apache/poi/hssf/usermodel/HSSFFontFormatting.java
src/java/org/apache/poi/hssf/usermodel/HSSFFormulaEvaluator.java
src/java/org/apache/poi/hssf/usermodel/HSSFPatternFormatting.java
src/java/org/apache/poi/hssf/usermodel/HSSFRow.java
src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java
src/java/org/apache/poi/hssf/usermodel/HSSFSheetConditionalFormatting.java
src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
src/java/org/apache/poi/ss/formula/EvaluationCell.java
src/java/org/apache/poi/ss/formula/ExternSheetReferenceToken.java
src/java/org/apache/poi/ss/formula/WorkbookDependentFormula.java
src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java
src/java/org/apache/poi/ss/usermodel/FormulaEvaluator.java
src/java/org/apache/poi/ss/usermodel/HeaderFooter.java
src/java/org/apache/poi/ss/util/CellRangeAddressBase.java
src/java/org/apache/poi/ss/util/CellRangeAddressList.java
src/java/org/apache/poi/ss/util/Region.java
src/java/org/apache/poi/util/StringUtil.java
src/ooxml/java/org/apache/poi/util/PackageHelper.java
src/ooxml/java/org/apache/poi/xssf/model/XSSFChildContainingModel.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCellStyle.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFormulaEvaluator.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPicture.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFPictureData.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java
src/ooxml/java/org/apache/poi/xssf/usermodel/extensions/XSSFHeaderFooter.java
src/scratchpad/src/org/apache/poi/hslf/model/ActiveXShape.java
src/scratchpad/src/org/apache/poi/hslf/model/MovieShape.java
src/scratchpad/src/org/apache/poi/hslf/model/OLEShape.java
src/scratchpad/src/org/apache/poi/hslf/record/AnimationInfoAtom.java
src/scratchpad/src/org/apache/poi/hslf/record/HeadersFootersAtom.java
src/scratchpad/src/org/apache/poi/hsmf/MAPIMessage.java
src/scratchpad/src/org/apache/poi/hsmf/datatypes/Chunk.java
src/scratchpad/src/org/apache/poi/hsmf/parsers/POIFSChunkParser.java
src/scratchpad/src/org/apache/poi/hwpf/model/PicturesTable.java
src/scratchpad/src/org/apache/poi/hwpf/model/TextPiece.java
src/scratchpad/src/org/apache/poi/hwpf/model/TextPieceTable.java
src/scratchpad/src/org/apache/poi/hwpf/usermodel/HeaderStories.java
src/testcases/org/apache/poi/hssf/usermodel/TestHSSFFormulaEvaluator.java
src/testcases/org/apache/poi/ss/formula/TestCellCacheEntry.java
src/testcases/org/apache/poi/ss/formula/TestEvaluationCache.java

index e44cd69c7c59df51969b02e2b3ad79388d918cab..617366fd769527119c996216c0e126bdbeb245b5 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1010,7 +1010,7 @@ FORREST_HOME environment variable!</echo>
     warn-unless-xslt-is-available"
     description="Generates the API documentation">
     <javadoc verbose="false" author="true" destdir="${apidocs.report.dir}"
-      windowtitle="POI API Documentation" use="true" version="true">
+      windowtitle="POI API Documentation" use="true" version="true" maxmemory="256M">
 
       <packageset dir="${main.src}" defaultexcludes="yes">
         <include name="org/apache/poi/**"/>
@@ -1022,7 +1022,7 @@ FORREST_HOME environment variable!</echo>
       <packageset dir="${contrib.src}" defaultexcludes="yes">
         <include name="org/apache/poi/**"/>
       </packageset>
-      <packageset dir="${examples.src}" defaultexcludes="yes">
+      <packageset dir="${ooxml.src}" defaultexcludes="yes">
         <include name="org/apache/poi/**"/>
       </packageset>
 
@@ -1030,7 +1030,7 @@ FORREST_HOME environment variable!</echo>
         <path refid="main.classpath"/>
         <path refid="scratchpad.classpath"/>
         <path refid="contrib.classpath"/>
-        <path refid="examples.classpath"/>
+        <path refid="ooxml.classpath"/>
         <path path="${env.CLASSPATH}"/>
       </classpath>
 
index 6d2def084ea53a432208fa956f0d103baa1c6989..c5b29871c555e925a47bd8305d7b1cfaaa2b11ed 100644 (file)
@@ -52,7 +52,7 @@ public final class BiffViewer {
        /**
         *  Create an array of records from an input stream
         *
-        *@param  in the InputStream from which the records will be obtained
+        *@param  is the InputStream from which the records will be obtained
         *@return an array of Records created from the InputStream
         *@exception  RecordFormatException  on error processing the InputStream
         */
index 901402eff0e349d514ae19aedaf80e7dbeba20e0..23d6ec115c206dd4d261a64aa86710426c942ab3 100644 (file)
@@ -148,9 +148,7 @@ public final class Sheet implements Model {
      * to the passed in records and references to those records held. This function
      * is normally called via Workbook.
      *
-     * @param inRecs array containing those records in the sheet in sequence (normally obtained from RecordFactory)
-     * @param sheetnum integer specifying the sheet's number (0,1 or 2 in this release)
-     * @param offset of the sheet's BOF record
+     * @param rs the stream to read records from
      *
      * @return Sheet object with all values set to those read from the file
      *
@@ -653,7 +651,6 @@ public final class Sheet implements Model {
      * at what this sets it to.
      *
      * @param row the row record to be added
-     * @see #setLoc(int)
      */
 
     public void addRow(RowRecord row)
@@ -706,7 +703,6 @@ public final class Sheet implements Model {
      * subsequent calls will return values in (physical) sequence or NULL when you get to the end.
      *
      * @return CellValueRecordInterface representing the next value record or NULL if there are no more
-     * @see #setLoc(int)
      */
     public CellValueRecordInterface[] getValueRecords() {
         return _rowsAggregate.getValueRecords();
@@ -723,8 +719,6 @@ public final class Sheet implements Model {
      * subsequent calls will return rows in (physical) sequence or NULL when you get to the end.
      *
      * @return RowRecord representing the next row record or NULL if there are no more
-     * @see #setLoc(int)
-     *
      */
     public RowRecord getNextRow() {
         if (rowRecIterator == null)
@@ -751,7 +745,6 @@ public final class Sheet implements Model {
      *
      * @param rownum   which row to return (careful with LOC)
      * @return RowRecord representing the next row record or NULL if there are no more
-     * @see #setLoc(int)
      *
      */
     public RowRecord getRow(int rownum) {
@@ -985,7 +978,7 @@ public final class Sheet implements Model {
      * @param columnIndex index
      * @see org.apache.poi.hssf.record.DefaultColWidthRecord
      * @see org.apache.poi.hssf.record.ColumnInfoRecord
-     * @see #setColumnWidth(short,short)
+     * @see #setColumnWidth(int, int)
      * @return column width in units of 1/256th of a character width
      */
 
@@ -1036,10 +1029,10 @@ public final class Sheet implements Model {
 
     /**
      * Get the hidden property for a given column.
-     * @param column index
+     * @param columnIndex column index
      * @see org.apache.poi.hssf.record.DefaultColWidthRecord
      * @see org.apache.poi.hssf.record.ColumnInfoRecord
-     * @see #setColumnHidden(short,boolean)
+     * @see #setColumnHidden(int, boolean)
      * @return whether the column is hidden or not.
      */
     public boolean isColumnHidden(int columnIndex) {
index 2be58b0d908d8d5c979791c351000306cc72a206..eeadd388a7bbb4ebee909a05ff4e7805c7e5f4a3 100644 (file)
@@ -87,7 +87,7 @@ public final class CFHeaderRecord extends Record {
        /**
         * Set cell ranges list to a single cell range and 
         * modify the enclosing cell range accordingly.
-        * @param List cellRanges - list of CellRange objects
+        * @param cellRanges - list of CellRange objects
         */
        public void setCellRanges(CellRangeAddress[] cellRanges)
        {
index f9e11dbaf47790484024076420f683c6da11d5fd..7ec14d06df323a65e93f422c3289366e3abc309b 100644 (file)
@@ -437,7 +437,7 @@ public final class CFRuleRecord extends Record {
         * Subclasses should implement this so that their data is passed back in a
         * byte array.
         *
-        * @param offset to begin writing at
+        * @param pOffset to begin writing at
         * @param data byte array containing instance data
         * @return number of bytes written
         */
index 1fc0907f96e94c0fcf402d66f5652bc1be14d55c..5cd4a10431c07b58a73e2a5ffb05c468913f448f 100644 (file)
@@ -120,7 +120,7 @@ public final class ColumnInfoRecord extends Record {
     /**
      * set whether or not these cells are hidden
      * @param ishidden - whether the cells are hidden.
-     * @see #setOptions(short)
+     * @see #setOptions(int)
      */
 
     public void setHidden(boolean ishidden)
@@ -130,7 +130,7 @@ public final class ColumnInfoRecord extends Record {
 
     /**
      * set the outline level for the cells
-     * @see #setOptions(short)
+     * @see #setOptions(int)
      * @param olevel -outline level for the cells
      */
 
@@ -142,7 +142,7 @@ public final class ColumnInfoRecord extends Record {
     /**
      * set whether the cells are collapsed
      * @param iscollapsed - wether the cells are collapsed
-     * @see #setOptions(short)
+     * @see #setOptions(int)
      */
 
     public void setCollapsed(boolean iscollapsed)
@@ -206,7 +206,7 @@ public final class ColumnInfoRecord extends Record {
     /**
      * get whether or not these cells are hidden
      * @return whether the cells are hidden.
-     * @see #setOptions(short)
+     * @see #setOptions(int)
      */
 
     public boolean getHidden()
@@ -216,7 +216,7 @@ public final class ColumnInfoRecord extends Record {
 
     /**
      * get the outline level for the cells
-     * @see #setOptions(short)
+     * @see #setOptions(int)
      * @return outline level for the cells
      */
 
@@ -228,7 +228,7 @@ public final class ColumnInfoRecord extends Record {
     /**
      * get whether the cells are collapsed
      * @return wether the cells are collapsed
-     * @see #setOptions(short)
+     * @see #setOptions(int)
      */
 
     public boolean getCollapsed()
index fef70667db94dcd96e380a4e73b34d5e0124b805..cb0afcbdaefd9192ce2e8acad5f1e6ba7acab11f 100644 (file)
@@ -148,7 +148,7 @@ public final class DBCellRecord extends Record {
     }
     
     /**
-     *  @returns the size of the group of <tt>DBCellRecord</tt>s needed to encode
+     *  @return the size of the group of <tt>DBCellRecord</tt>s needed to encode
      *  the specified number of blocks and rows
      */
     public static int calculateSizeOfRecords(int nBlocks, int nRows) {
index c552a39f201a33347d80b5158a02d650045d3502..f09b31f41efc4b39648956ce882466e40636a1b9 100644 (file)
@@ -66,7 +66,7 @@ public final class DVRecord extends Record {
        /**
         * Option flags field
         * 
-        * @see org.apache.poi.hssf.util.HSSFDataValidation utility class
+        * @see HSSFDataValidation utility class
         */
        private static final BitField opt_data_type                    = new BitField(0x0000000F);
        private static final BitField opt_error_style                  = new BitField(0x00000070);
@@ -133,7 +133,7 @@ public final class DVRecord extends Record {
        // --> start option flags
        /**
         * @return the condition data type
-        * @see DVConstraint.ValidationType
+        * @see org.apache.poi.hssf.usermodel.DVConstraint.ValidationType
         */
        public int getDataType() {
           return opt_data_type.getValue(_option_flags);
@@ -141,7 +141,7 @@ public final class DVRecord extends Record {
 
        /**
         * @return the condition error style
-        * @see HSSFDataValidation.ErrorStyle
+        * @see org.apache.poi.hssf.usermodel.HSSFDataValidation.ErrorStyle
         */
        public int getErrorStyle() {
           return opt_error_style.getValue(_option_flags);
@@ -189,7 +189,7 @@ public final class DVRecord extends Record {
        /**
         * get the condition operator
         * @return the condition operator
-        * @see org.apache.poi.hssf.util.HSSFDataValidation utility class
+        * @see HSSFDataValidation utility class
         */
        public int getConditionOperator() {
           return opt_condition_operator.getValue(_option_flags);
index 54d94d9f831e9ef66d8d62f26b5b3d597f71d080..f6b3e6340c479fcae4c253a11d2a422f610d30b8 100644 (file)
@@ -90,28 +90,28 @@ public final class FileSharingRecord extends Record {
     }
 
     /**
-     * @param hashed password
+     * @param password hashed password
      */
     public void setPassword(short password) {
         field_2_password = password;
     }
 
     /**
-     * @returns password hashed with hashPassword() (very lame)
+     * @return password hashed with hashPassword() (very lame)
      */
     public short getPassword() {
         return field_2_password;
     }
 
     /**
-     * @returns byte representing the length of the username field
+     * @return byte representing the length of the username field
      */
     public short getUsernameLength() {
         return (short) field_3_username_value.length();
     }
 
     /**
-     * @returns username of the user that created the file
+     * @return username of the user that created the file
      */
     public String getUsername() {
         return field_3_username_value;
index f7904a10025ceced044720ad430a98166dd346ce..d4d824f89bc31676491c56d73e87dde61c6e1625 100644 (file)
@@ -211,7 +211,7 @@ public final class HyperlinkRecord extends Record {
     }
 
     /**
-     * Returns a 16-byte guid identifier. Seems to always equal {@link STD_MONIKER}
+     * Returns a 16-byte guid identifier. Seems to always equal {@link #STD_MONIKER}
      *
      * @return 16-byte guid identifier
      */
index f27fb2d88387f3eb2e54897b25a56cbdef6bfdb6..72ba2e4ca0eabcdb9cfac3f735990b1970fe13bd 100644 (file)
@@ -523,7 +523,7 @@ public final class NameRecord extends Record {
         * called by the constructor, should set class level fields.  Should throw
         * runtime exception for bad/icomplete data.
         *
-        * @param in the RecordInputstream to read the record from
+        * @param ris the RecordInputstream to read the record from
         */
        public NameRecord(RecordInputStream ris) {
                LittleEndianInput in = ris;
index f2b84d32766b9d4c839427843c34ad4495069b91..fff3f39f3f59ea06aeb789a84c56fac898aa2ac1 100644 (file)
@@ -40,8 +40,6 @@ public final class NoteStructureSubRecord extends SubRecord {
     /**
      * Construct a new <code>NoteStructureSubRecord</code> and
      * fill its data with the default values
-     * @param size 
-     * @param in 
      */
     public NoteStructureSubRecord()
     {
@@ -80,10 +78,7 @@ public final class NoteStructureSubRecord extends SubRecord {
     /**
      * Serialize the record data into the supplied array of bytes
      *
-     * @param offset offset in the <code>data</code>
-     * @param data the data to serialize into
-     *
-     * @return size of the record
+     * @param out the stream to serialize into
      */
     public void serialize(LittleEndianOutput out) {
         out.writeShort(sid);
index 2f275ed9283385fa8cd4e3623ce5f5176fe07a9d..b7b47ffd6d6013194ce5127bf2c924e4d12de84e 100755 (executable)
@@ -76,7 +76,7 @@ public final class RecordInputStream extends InputStream implements LittleEndian
        }
        
        /**
-        * @returns the number of bytes available in the current BIFF record
+        * @return the number of bytes available in the current BIFF record
         * @see #remaining()
         */
        public int available() {
@@ -216,7 +216,6 @@ public final class RecordInputStream extends InputStream implements LittleEndian
 
        /**
         * Reads a 16 bit, unsigned value.
-        * @return
         */
        public int readUShort() {
                checkRecordPosition(LittleEndian.SHORT_SIZE);
index af60e692444dd510e8981b93b0fb184d3007913e..9994dfcf77c90ca364a94406d56b550480de7ed5 100644 (file)
@@ -94,7 +94,7 @@ public final class StyleRecord extends Record {
 
        /**
         * get the actual index of the style extended format record
-        * @see #getIndex()
+        * @see #getXFIndex() 
         * @return index of the xf record
         */
        public int getXFIndex() {
index 5cbfd42d6a17e3511e9737320cb513cb6a3296aa..8ff2e26ed45e8b74a3317653bb33021e39f3186f 100644 (file)
@@ -80,9 +80,7 @@ public final class SupBookRecord extends Record {
      * called by the constructor, should set class level fields.  Should throw
      * runtime exception for bad/incomplete data.
      *
-     * @param data raw data
-     * @param size size of data
-     * @param offset of the record's data (provided a big array of the file)
+     * @param in the stream to read from
      */
     public SupBookRecord(RecordInputStream in) {
         int recLen = in.remaining();
index b9e4d833ba6b20152da3a2b31f1b5b5b676c50fa..73f39db774c22ce0480104bc420bbd0e24b7bd8d 100644 (file)
@@ -74,8 +74,7 @@ public final class CFRecordsAggregate extends RecordAggregate {
 
        /**
         * Create CFRecordsAggregate from a list of CF Records
-        * @param recs - list of {@link Record} objects
-        * @param offset - position of {@link CFHeaderRecord} object in the list of Record objects
+        * @param rs - the stream to read from
         * @return CFRecordsAggregate object
         */
        public static CFRecordsAggregate createCFAggregate(RecordStream rs) {
@@ -98,7 +97,6 @@ public final class CFRecordsAggregate extends RecordAggregate {
 
        /**
         * Create a deep clone of the record
-        * @return
         */
        public CFRecordsAggregate cloneCFAggregate()
        {
index 2a2497f363cbdefba9015143dbfe051c3fb576aa..0d57edbc439a366f2a730e1144787c9a474f4241 100644 (file)
@@ -358,7 +358,7 @@ public final class RowRecordsAggregate extends RecordAggregate {
     /**
      * Create a row record.
      *
-     * @param row number
+     * @param rowNumber row number
      * @return RowRecord created for the passed in row number
      * @see org.apache.poi.hssf.record.RowRecord
      */
index 98eebe0880d09d7ef47f696b22d554fc2810051d..92eece49a9ca5d0b3bee57fe151d043c39a11416 100644 (file)
@@ -106,13 +106,6 @@ public final class SharedValueManager {
                _groupsBySharedFormulaRecord = m;
        }
 
-       /**
-        * @param recs list of sheet records (possibly contains records for other parts of the Excel file)
-        * @param startIx index of first row/cell record for current sheet
-        * @param endIx one past index of last row/cell record for current sheet.  It is important 
-        * that this code does not inadvertently collect <tt>SharedFormulaRecord</tt>s from any other
-        * sheet (which could happen if endIx is chosen poorly).  (see bug 44449) 
-        */
        public static SharedValueManager create(SharedFormulaRecord[] sharedFormulaRecords,
                        ArrayRecord[] arrayRecords, TableRecord[] tableRecords) {
                if (sharedFormulaRecords.length + arrayRecords.length + tableRecords.length < 1) {
index 4698c5c310fe98f007d5ecf80440b01796753ef0..e9eca99258f1f180789166b71056812dd5b74d01 100644 (file)
@@ -321,7 +321,7 @@ public final class BorderFormatting {
     /**
      * get the color to use for the left border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return  The index of the color definition
      */
     public int getLeftBorderColor() {
         return bordLeftLineColor.getValue(field_13_border_styles1);
@@ -338,7 +338,7 @@ public final class BorderFormatting {
     /**
      * get the color to use for the right border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public int getRightBorderColor() {
         return bordRightLineColor.getValue(field_13_border_styles1);
@@ -355,7 +355,7 @@ public final class BorderFormatting {
     /**
      * get the color to use for the top border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public int getTopBorderColor() {
         return bordTopLineColor.getValue(field_14_border_styles2);
@@ -373,7 +373,7 @@ public final class BorderFormatting {
     /**
      * get the color to use for the bottom border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public int getBottomBorderColor() {
         return bordBottomLineColor.getValue(field_14_border_styles2);
@@ -390,7 +390,7 @@ public final class BorderFormatting {
     /**
      * get the color to use for the diagonal border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public int getDiagonalBorderColor() {
         return bordDiagLineColor.getValue(field_14_border_styles2);
index 019644c2d897a5d6d9a51ec622936fb8253defc7..5769e88c3eb5925a2cc00404b1bde3a196440652 100644 (file)
@@ -89,7 +89,7 @@ public final class CellRangeUtil
         * Do all possible cell merges between cells of the list so that:<br>
         *      <li>if a cell range is completely inside of another cell range, it gets removed from the list 
         *      <li>if two cells have a shared border, merge them into one bigger cell range
-        * @param cellRangeList
+        * @param cellRanges
         * @return updated List of cell ranges
         */
        public static CellRangeAddress[] mergeCellRanges(CellRangeAddress[] cellRanges) {
index e932beb9aef0870bd2f440e64839aabfaee5eb77..d8da21095d8acb0da518fad956acd7efaefead78 100644 (file)
@@ -188,8 +188,8 @@ public final class FontFormatting
        /**
         * set the font to be italics or not
         *
-        * @param italics - whether the font is italics or not
-        * @see #setAttributes(short)
+        * @param italic - whether the font is italics or not
+        * @see #setFontOption(boolean, org.apache.poi.util.BitField)
         */
 
        public void setItalic(boolean italic)
@@ -201,7 +201,7 @@ public final class FontFormatting
         * get whether the font is to be italics or not
         *
         * @return italics - whether the font is italics or not
-        * @see #getAttributes()
+        * @see #getFontOption(org.apache.poi.util.BitField)
         */
 
        public boolean isItalic()
@@ -244,7 +244,7 @@ public final class FontFormatting
         * get whether the font is to be stricken out or not
         *
         * @return strike - whether the font is stricken out or not
-        * @see #getAttributes()
+        * @see #getFontOption(org.apache.poi.util.BitField)
         */
 
        public boolean isStruckout()
index 771cccf5824f57443c0ab398b3536cb776c8dfc4..08f690ce4760f335760748c80b4551c977e92aba 100644 (file)
@@ -260,7 +260,7 @@ public abstract class Ptg implements Cloneable {
        public abstract int getSize();
        
        /**
-        * @return the encoded length of this Ptg, not including the initial Ptg type identifier byte. 
+        * //@return the encoded length of this Ptg, not including the initial Ptg type identifier byte. 
         */
 //    public abstract int getDataSize();
 
index 09be70477f0694c8a16845ea9ad488f9524ed46c..675aad4384c902ca52559ea2f4087dd8eeed01c9 100755 (executable)
@@ -234,7 +234,7 @@ public final class OperandResolver {
         *  "5**2" -&gt; 500<br/>
         *  "250%" -&gt; 2.5<br/>
         *  
-        * @param text
+        * @param pText
         * @return <code>null</code> if the specified text cannot be parsed as a number
         */
        public static Double parseDouble(String pText) {
index df7db7ad32892b8e96f92d3674fa3f0db9831bb1..be269d93dc0c0fa15875f4d9c714fe62043fcce5 100644 (file)
@@ -90,7 +90,7 @@ public abstract class TextFunction implements Function {
         * An implementation of the TRIM function:
         * Removes leading and trailing spaces from value if evaluated operand
         *  value is string.
-        * @author Manda Wilson &lt; wilson at c bio dot msk cc dot org &gt;
+        * Author: Manda Wilson &lt; wilson at c bio dot msk cc dot org &gt;
         */
        public static final Function TRIM = new SingleArgTextFunc() {
                protected ValueEval evaluate(String arg) {
@@ -106,7 +106,7 @@ public abstract class TextFunction implements Function {
         * <b>Syntax<b>:<br/> <b>MID</b>(<b>text</b>, <b>start_num</b>,
         * <b>num_chars</b>)<br/>
         * 
-        * @author Manda Wilson &lt; wilson at c bio dot msk cc dot org &gt;
+        * Author: Manda Wilson &lt; wilson at c bio dot msk cc dot org &gt;
         */
        public static final Function MID = new TextFunction() {
 
index 6f327b21c3de42b9c247f0904e40aa108418a0f8..fd51b43857a3353ba5a1fe530472cc2648742243 100644 (file)
@@ -216,7 +216,6 @@ public class HSSFCell implements Cell {
 
     /**
      * Returns the Workbook that this Cell is bound to
-     * @return
      */
     protected Workbook getBoundWorkbook() {
         return book.getWorkbook();
@@ -1085,7 +1084,7 @@ public class HSSFCell implements Cell {
     /**
      * Assign a hypelrink to this cell
      *
-     * @param link hypelrink associated with this cell
+     * @param hyperlink hypelrink associated with this cell
      */
     public void setHyperlink(Hyperlink hyperlink){
        HSSFHyperlink link = (HSSFHyperlink)hyperlink;
index 5baf8219ccbdd5bafff16554518a10983c64b53b..a2dbd4d919bc9ca1aa137d98b8452cb2d03f16e8 100644 (file)
@@ -437,28 +437,6 @@ public class HSSFCellStyle implements CellStyle
         return format.getAlignment();
     }
 
-    /**
-     * get whether this cell is to be part of a merged block of cells
-     *
-     * @returns merged or not
-     */
-
-//    public boolean getMergeCells()
-//    {
-//        return format.getMergeCells();
-//    }
-
-    /**
-     * set whether this cell is to be part of a merged block of cells
-     *
-     * @param merge  merged or not
-     */
-
-//    public void setMergeCells(boolean merge)
-//    {
-//        format.setMergeCells(merge);
-//    }
-
     /**
      * set whether the text should be wrapped
      * @param wrapped  wrap text or not
@@ -767,7 +745,7 @@ public class HSSFCellStyle implements CellStyle
     /**
      * get the color to use for the left border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public short getLeftBorderColor()
     {
@@ -786,7 +764,7 @@ public class HSSFCellStyle implements CellStyle
     /**
      * get the color to use for the left border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public short getRightBorderColor()
     {
@@ -805,7 +783,7 @@ public class HSSFCellStyle implements CellStyle
     /**
      * get the color to use for the top border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public short getTopBorderColor()
     {
@@ -824,7 +802,7 @@ public class HSSFCellStyle implements CellStyle
     /**
      * get the color to use for the left border
      * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short)
-     * @param color The index of the color definition
+     * @return The index of the color definition
      */
     public short getBottomBorderColor()
     {
index 3029515f4c6bc9e239f348246bb1e9b712ea4012..1d843c6848ea8d41f93f6bd37c88ad6f4fa03eec 100644 (file)
@@ -43,7 +43,7 @@ import org.apache.poi.ss.util.Region;
  *  </LI>
  *  </UL>
  * 
- * Use {@link HSSFSheet#getConditionalFormattingAt(int)} to get access to an instance of this class. 
+ * Use {@link org.apache.poi.hssf.usermodel.HSSFSheet#getSheetConditionalFormatting()} to get access to an instance of this class.
  * <P>
  * To create a new Conditional Formatting set use the following approach:
  * 
index 0591158b61808dfa2725125ba17917ac464ce788..0dfcbbfa635549e2c95b6ce62f2c1d4d9b3f12a0 100644 (file)
@@ -138,7 +138,7 @@ public final class HSSFDataValidation {
        }
 
        /**
-        * @param show <code>true</code> if an prompt box should be displayed , <code>false</code> otherwise
+        * @return <code>true</code> if an prompt box should be displayed , <code>false</code> otherwise
         */
        public boolean getShowPromptBox() {
                return _showPromptBox;
index 774bc1ea4d87b2aa55f850cdfbbf1f3c42269c46..f55fe64b574fe44c5ef3c3b279a03967b1819dce 100644 (file)
@@ -102,7 +102,6 @@ public final class HSSFFontFormatting
        }
 
        /**
-        * @return
         * @see org.apache.poi.hssf.record.cf.FontFormatting#getRawRecord()
         */
        protected byte[] getRawRecord()
@@ -228,7 +227,7 @@ public final class HSSFFontFormatting
         * set font style options.
         * 
         * @param italic - if true, set posture style to italic, otherwise to normal 
-        * @param bold- if true, set font weight to bold, otherwise to normal
+        * @param bold if true, set font weight to bold, otherwise to normal
         */
        
        public void setFontStyle(boolean italic, boolean bold)
@@ -302,7 +301,7 @@ public final class HSSFFontFormatting
 
        /**
         * @param height
-        * @see org.apache.poi.hssf.record.cf.FontFormatting#setFontHeight(short)
+        * @see org.apache.poi.hssf.record.cf.FontFormatting#setFontHeight(int)
         */
        public void setFontHeight(int height)
        {
@@ -369,7 +368,7 @@ public final class HSSFFontFormatting
        /**
         * set the type of underlining type for the font
         *
-        * @param u  super or subscript option
+        * @param underlineType  super or subscript option
         *
         * @see #U_NONE
         * @see #U_SINGLE
index ef8300d0986661f02f4ecd35d3aee07a194f7551..0ca8d5723db0cc5a2a2cc9c73f9d753546872ef7 100644 (file)
@@ -33,7 +33,7 @@ import org.apache.poi.ss.usermodel.CellValue;
  * Evaluates formula cells.<p/>\r
  *\r
  * For performance reasons, this class keeps a cache of all previously calculated intermediate\r
- * cell values.  Be sure to call {@link #clearCache()} if any workbook cells are changed between\r
+ * cell values.  Be sure to call {@link #clearAllCachedResultValues()} if any workbook cells are changed between\r
  * calls to evaluate~ methods on this class.\r
  *\r
  * @author Amol S. Deshmukh &lt; amolweb at ya hoo dot com &gt;\r
@@ -156,7 +156,7 @@ public class HSSFFormulaEvaluator /* almost implements FormulaEvaluator */ {
         * int evaluatedCellType = evaluator.evaluateFormulaCell(cell);\r
         * </pre>\r
         * Be aware that your cell will hold both the formula, and the result. If you want the cell \r
-        * replaced with the result of the formula, use {@link #evaluateInCell(HSSFCell)}\r
+        * replaced with the result of the formula, use {@link #evaluateInCell(org.apache.poi.ss.usermodel.Cell)}\r
         * @param cell The cell to evaluate\r
         * @return -1 for non-formula cells, or the type of the <em>formula result</em>\r
         */\r
@@ -183,7 +183,7 @@ public class HSSFFormulaEvaluator /* almost implements FormulaEvaluator */ {
         * </pre>\r
         * Be aware that your cell value will be changed to hold the\r
         *  result of the formula. If you simply want the formula\r
-        *  value computed for you, use {@link #evaluateFormulaCell(HSSFCell)}\r
+        *  value computed for you, use {@link #evaluateFormulaCell(org.apache.poi.ss.usermodel.Cell)}}\r
         * @param cell\r
         */\r
        public HSSFCell evaluateInCell(Cell cell) {\r
index 1ec1dfa9c6c91731b548aaffd4e0a58fec63ba8a..f0d31aad2b17dd448267ba3a454acfcf3a6595ae 100644 (file)
@@ -82,7 +82,6 @@ public class HSSFPatternFormatting
        }
 
        /**
-        * @return
         * @see org.apache.poi.hssf.record.cf.PatternFormatting#getFillBackgroundColor()
         */
        public short getFillBackgroundColor()
@@ -91,7 +90,6 @@ public class HSSFPatternFormatting
        }
 
        /**
-        * @return
         * @see org.apache.poi.hssf.record.cf.PatternFormatting#getFillForegroundColor()
         */
        public short getFillForegroundColor()
@@ -100,7 +98,6 @@ public class HSSFPatternFormatting
        }
 
        /**
-        * @return
         * @see org.apache.poi.hssf.record.cf.PatternFormatting#getFillPattern()
         */
        public short getFillPattern()
@@ -110,7 +107,7 @@ public class HSSFPatternFormatting
 
        /**
         * @param bg
-        * @see org.apache.poi.hssf.record.cf.PatternFormatting#setFillBackgroundColor(short)
+        * @see org.apache.poi.hssf.record.cf.PatternFormatting#setFillBackgroundColor(int)
         */
        public void setFillBackgroundColor(short bg)
        {
@@ -123,7 +120,7 @@ public class HSSFPatternFormatting
 
        /**
         * @param fg
-        * @see org.apache.poi.hssf.record.cf.PatternFormatting#setFillForegroundColor(short)
+        * @see org.apache.poi.hssf.record.cf.PatternFormatting#setFillForegroundColor(int)
         */
        public void setFillForegroundColor(short fg)
        {
@@ -136,7 +133,7 @@ public class HSSFPatternFormatting
 
        /**
         * @param fp
-        * @see org.apache.poi.hssf.record.cf.PatternFormatting#setFillPattern(short)
+        * @see org.apache.poi.hssf.record.cf.PatternFormatting#setFillPattern(int)
         */
        public void setFillPattern(short fp)
        {
index 3668a53393342a8ce63c4ed2686f5331ba3a1e84..0ddccfb0ecd2c067126d76cf857a06a755673622 100644 (file)
@@ -317,7 +317,7 @@ public final class HSSFRow implements Comparable, Row {
      * Get the hssfcell representing a given column (logical cell)
      *  0-based.  If you ask for a cell that is not defined then
      *  you get a null, unless you have set a different
-     *  {@link MissingCellPolicy} on the base workbook.
+     *  {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy} on the base workbook.
      *
      * @param cellnum  0 based column number
      * @return HSSFCell representing that column or null if undefined.
@@ -560,7 +560,7 @@ public final class HSSFRow implements Comparable, Row {
      *  will not return un-defined (null) cells.
      * Call getCellNum() on the returned cells to know which cell they are.
      * As this only ever works on physically defined cells, 
-     *  the {@link MissingCellPolicy} has no effect.
+     *  the {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy} has no effect.
      */
     public Iterator cellIterator()
     {
index fd0e0a53591648f39520a5b08cd0719a0fb437ed..5733bbcf37eacdfdc07417677f92cac43c8b90db 100644 (file)
@@ -201,7 +201,7 @@ public class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet
      * @param rownum  row number
      * @return High level HSSFRow object representing a row in the sheet
      * @see org.apache.poi.hssf.usermodel.HSSFRow
-     * @see #removeRow(HSSFRow)
+     * @see #removeRow(org.apache.poi.ss.usermodel.Row)
      */
     public HSSFRow createRow(int rownum)
     {
index b2912bc6e658277a2e31e1cadb957e6273b7a758..afaeb8031ceb4f61f092936af7ae2ebf96eee691 100644 (file)
@@ -45,7 +45,7 @@ public final class HSSFSheetConditionalFormatting {
         * TODO - formulas containing cell references are currently not parsed properly \r
         *\r
         * @param comparisonOperation - a constant value from\r
-        *               <tt>{@link HSSFConditionalFormattingRule.ComparisonOperator}</tt>: <p>\r
+        *               <tt>{@link org.apache.poi.hssf.record.CFRuleRecord.ComparisonOperator}</tt>: <p>\r
         * <ul>\r
         *               <li>BETWEEN</li>\r
         *               <li>NOT_BETWEEN</li>\r
@@ -59,8 +59,8 @@ public final class HSSFSheetConditionalFormatting {
         * </p>\r
         * @param formula1 - formula for the valued, compared with the cell\r
         * @param formula2 - second formula (only used with\r
-        * {@link HSSFConditionalFormattingRule#COMPARISON_OPERATOR_BETWEEN}) and\r
-        * {@link HSSFConditionalFormattingRule#COMPARISON_OPERATOR_NOT_BETWEEN} operations)\r
+        * {@link org.apache.poi.hssf.record.CFRuleRecord.ComparisonOperator#BETWEEN}) and\r
+        * {@link org.apache.poi.hssf.record.CFRuleRecord.ComparisonOperator#NOT_BETWEEN} operations)\r
         */\r
        public HSSFConditionalFormattingRule createConditionalFormattingRule(\r
                        byte comparisonOperation,\r
index 24ef987eeea395fc72c44035c971e51c5fa0d1fa..dea16b39dbfd205c932421efc7f7c3756fd94f8b 100644 (file)
@@ -382,7 +382,7 @@ public class HSSFWorkbook extends POIDocument implements org.apache.poi.ss.userm
      * Sets the policy on what to do when
      *  getting missing or blank cells from a row.
      * This will then apply to all calls to
-     *  {@link HSSFRow.getCell()}. See
+     *  {@link HSSFRow#getCell(int)}}. See
      *  {@link MissingCellPolicy}.
      * Note that this has no effect on any
      *  iterators, only on when fetching Cells
index c15754b921bba59ee2388fe10314d09a5451fc35..b1f467c5c146081940c0929ac85f0d37d739aeae 100644 (file)
@@ -21,7 +21,7 @@ package org.apache.poi.ss.formula;
  * Abstracts a cell for the purpose of formula evaluation.  This interface represents both formula
  * and non-formula cells.<br/>
  * 
- * Implementors of this class must implement {@link #hashCode()} and {@link #equals(Object)}
+ * Implementors of this class must implement {@link Object#hashCode()} and {@link Object#equals(Object)}
  * to provide an <em>identity</em> relationship based on the underlying HSSF or XSSF cell <p/>
  * 
  * For POI internal use only
index 09262a1320ae507db003ed2307a02bb4706c6459..0a4451f651a611c4157b1e64960e2bbc682dddaa 100644 (file)
@@ -18,7 +18,7 @@
 package org.apache.poi.ss.formula;
 
 /**
- * Should be implemented by any {@link Ptg} subclass that needs has an extern sheet index <br/>
+ * Should be implemented by any {@link org.apache.poi.hssf.record.formula.Ptg} subclass that needs has an extern sheet index <br/>
  * 
  * For POI internal use only
  * 
index b7ccfaf0eb970bcd40d0089fae52b26c8172a04e..3dc2c525d518f07b5880d9db7134f4ac7048aad6 100644 (file)
@@ -18,7 +18,7 @@
 package org.apache.poi.ss.formula;\r
 \r
 /**\r
- * Should be implemented by any {@link Ptg} subclass that needs a workbook to render its formula.\r
+ * Should be implemented by any {@link org.apache.poi.hssf.record.formula.Ptg} subclass that needs a workbook to render its formula.\r
  * <br/>\r
  * \r
  * For POI internal use only\r
index ef5975d3e678f29168a7f3080ff1419dc5809d63..d3955f8796db6f5ff97237eb45defefcf37913e4 100644 (file)
@@ -68,7 +68,7 @@ import org.apache.poi.ss.usermodel.Cell;
  * Evaluates formula cells.<p/>
  *
  * For performance reasons, this class keeps a cache of all previously calculated intermediate
- * cell values.  Be sure to call {@link #clearCache()} if any workbook cells are changed between
+ * cell values.  Be sure to call {@link #clearAllCachedResultValues()} if any workbook cells are changed between
  * calls to evaluate~ methods on this class.<br/>
  *
  * For POI internal use only
index 15711195b1263394d6048dac97c61e808c4ea60c..e60104bd31f2aeef0b660a190d7a515f238e59b8 100644 (file)
 
 package org.apache.poi.ss.usermodel;
 
-import org.apache.poi.hssf.record.formula.eval.BlankEval;
-import org.apache.poi.hssf.record.formula.eval.BoolEval;
-import org.apache.poi.hssf.record.formula.eval.ErrorEval;
-import org.apache.poi.hssf.record.formula.eval.NumberEval;
-import org.apache.poi.hssf.record.formula.eval.StringEval;
-import org.apache.poi.hssf.record.formula.eval.ValueEval;
-import org.apache.poi.hssf.usermodel.HSSFSheet;
-
-
 /**
  * Evaluates formula cells.<p/>
  * 
  * For performance reasons, this class keeps a cache of all previously calculated intermediate
- * cell values.  Be sure to call {@link #clearCache()} if any workbook cells are changed between
+ * cell values.  Be sure to call {@link #clearAllCachedResultValues()} if any workbook cells are changed between
  * calls to evaluate~ methods on this class.
  * 
  * @author Amol S. Deshmukh &lt; amolweb at ya hoo dot com &gt;
index d862125cab83433f44e4467f03d65ef52279c35e..41c0e9ea35666152d1600b90fef237c9888c40b8 100644 (file)
@@ -17,8 +17,8 @@
 package org.apache.poi.ss.usermodel;
 
 /**
- * Common interface for {@link Header} and
- *  {@link Footer}.
+ * Common interface for {@link org.apache.poi.ss.usermodel.Header} and
+ *  {@link org.apache.poi.ss.usermodel.Footer}.
  */
 public interface HeaderFooter {
     /**
index f804571c09baae2c20c419fb5c99ef678f57d140..b26780d85b391707836cf5dcabba89296ca67958 100644 (file)
@@ -101,28 +101,28 @@ public abstract class CellRangeAddressBase {
        }
 
        /**
-        * @param _firstCol column number for the upper left hand corner
+        * @param firstCol column number for the upper left hand corner
         */
        public final void setFirstColumn(int firstCol) {
                _firstCol = firstCol;
        }
 
        /**
-        * @param rowFrom row number for the upper left hand corner
+        * @param firstRow row number for the upper left hand corner
         */
        public final void setFirstRow(int firstRow) {
                _firstRow = firstRow;
        }
 
        /**
-        * @param colTo column number for the lower right hand corner
+        * @param lastCol column number for the lower right hand corner
         */
        public final void setLastColumn(int lastCol) {
                _lastCol = lastCol;
        }
 
        /**
-        * @param rowTo row number for the lower right hand corner
+        * @param lastRow row number for the lower right hand corner
         */
        public final void setLastRow(int lastRow) {
                _lastRow = lastRow;
index f5dd8ab7ce2dd6d4bd4ae3c98a43af2695e9fe54..f0444e5e233863cfdcae3cff32ee3401711d0cf8 100644 (file)
@@ -84,7 +84,6 @@ public class CellRangeAddressList {
         * @param firstCol - the upper left hand corner's col
         * @param lastRow - the lower right hand corner's row
         * @param lastCol - the lower right hand corner's col
-        * @return the index of this ADDR structure
         */
        public void addCellRangeAddress(int firstRow, int firstCol, int lastRow, int lastCol) {
                CellRangeAddress region = new CellRangeAddress(firstRow, lastRow, firstCol, lastCol);
index 1ee64c5d024085cdb911db9e88b79a55bc9ed3cf..aee3eef0ace00dc6ac4553456437ccdf2689f019 100644 (file)
@@ -209,7 +209,7 @@ public class Region implements Comparable {
        /**
         * Convert a List of CellRange objects to an array of regions 
         *  
-        * @param List of CellRange objects
+        * @param cellRanges list of CellRange objects
         * @return regions
         */
        public static Region[] convertCellRangesToRegions(CellRangeAddress[] cellRanges) {
index 263f45e1e53b48758364ee1a0621798cd7219363..287c36b190036e247f057e01a9a2fe79098a181f 100644 (file)
@@ -25,7 +25,7 @@ import org.apache.poi.hssf.record.RecordInputStream;
 /**
  *  Title: String Utility Description: Collection of string handling utilities<p/>
  *  
- * Note - none of the methods in this class deals with {@link ContinueRecord}s.  For such
+ * Note - none of the methods in this class deals with {@link org.apache.poi.hssf.record.ContinueRecord}s.  For such
  * functionality, consider using {@link RecordInputStream
 } *
  *
index 4471a6046fb22d9054b24c7dcfc9d77ee0ec511c..258e5b8d1ef14435762d1035471e8e13331da4ac 100755 (executable)
@@ -84,9 +84,7 @@ public class PackageHelper {
     }\r
 \r
     /**\r
-     *\r
-     * @return\r
-     * @throws IOException\r
+     * Creates an empty file in the default temporary-file directory, \r
      */\r
     public static File createTempFile() throws IOException {\r
         File file = File.createTempFile("poi-ooxml-", ".tmp");\r
index fd37e79fded8967d8960fed57ebd2449d8b81fa5..d16cf9a1bdfb7f00760568d344c5b9c9b114e2a9 100644 (file)
@@ -36,7 +36,7 @@ public interface XSSFChildContainingModel extends XSSFModel {
         *  appropriate model or usermodel thing can be 
         *  created for it.
         * @param childPart The PackagePart of the child
-        * @param childId the ID of the relationship the child comes from
+        * @param childRelId the ID of the relationship the child comes from
         */
        public void generateChild(PackagePart childPart, String childRelId);
 
index f738b87749c52332c5cb221a9e807c1372b9aed9..edbae83765c215b323f9ed8d5f47b93faf6d100e 100644 (file)
@@ -86,8 +86,8 @@ public final class XSSFCell implements Cell {
     /**
      * Construct a XSSFCell.
      *
-     * @param row the xml bean containing information about the cell.
      * @param row the parent row.
+     * @param cell the xml bean containing information about the cell.
      */
     protected XSSFCell(XSSFRow row, CTCell cell) {
         this.cell = cell;
index 74baa5f2e6a6ad606ea755440174ec39b2266859..8a6ca929c7791ac925ce7b2ef45e8f685dde3b09 100644 (file)
@@ -120,13 +120,13 @@ public class XSSFCellStyle implements CellStyle {
      * Get the type of horizontal alignment for the cell
      *
      * @return short - the type of alignment
-     * @see #ALIGN_GENERAL
-     * @see #ALIGN_LEFT
-     * @see #ALIGN_CENTER
-     * @see #ALIGN_RIGHT
-     * @see #ALIGN_FILL
-     * @see #ALIGN_JUSTIFY
-     * @see #ALIGN_CENTER_SELECTION
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_GENERAL
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_LEFT
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_CENTER
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_RIGHT
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_FILL
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_JUSTIFY
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_CENTER_SELECTION
      */
     public short getAlignment() {
         return (short)(getAlignmentEnum().ordinal());
@@ -136,6 +136,7 @@ public class XSSFCellStyle implements CellStyle {
      * Get the type of horizontal alignment for the cell
      *
      * @return HorizontalAlignment - the type of alignment
+     * @see org.apache.poi.ss.usermodel.HorizontalAlignment
      */
     public HorizontalAlignment getAlignmentEnum() {
         CTCellAlignment align = cellXf.getAlignment();
@@ -150,20 +151,20 @@ public class XSSFCellStyle implements CellStyle {
      * Get the type of border to use for the bottom border of the cell
      *
      * @return short - border type
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
     public short getBorderBottom() {
         if(!cellXf.getApplyBorder()) return BORDER_NONE;
@@ -188,21 +189,21 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the type of border to use for the left border of the cell
      *
-     * @return short - border type, default value is {@link #BORDER_NONE}
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @return short - border type, default value is {@link org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE}
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
     public short getBorderLeft() {
         if(!cellXf.getApplyBorder()) return BORDER_NONE;
@@ -216,7 +217,7 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the type of border to use for the left border of the cell
      *
-     * @return border type, default value is {@link BorderStyle.NONE}
+     * @return border type, default value is {@link org.apache.poi.ss.usermodel.BorderStyle#NONE}
      */
     public BorderStyle getBorderLeftEnum() {
         int style  = getBorderLeft();
@@ -226,21 +227,21 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the type of border to use for the right border of the cell
      *
-     * @return short - border type, default value is {@link #BORDER_NONE}
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @return short - border type, default value is {@link org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE}
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
     public short getBorderRight() {
         if(!cellXf.getApplyBorder()) return BORDER_NONE;
@@ -254,7 +255,7 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the type of border to use for the right border of the cell
      *
-     * @return border type, default value is {@link BorderStyle.NONE}
+     * @return border type, default value is {@link org.apache.poi.ss.usermodel.BorderStyle#NONE}
      */
     public BorderStyle getBorderRightEnum() {
         int style  = getBorderRight();
@@ -264,21 +265,21 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the type of border to use for the top border of the cell
      *
-     * @return short - border type, default value is {@link #BORDER_NONE}
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @return short - border type, default value is {@link org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE}
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle #BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
     public short getBorderTop() {
         if(!cellXf.getApplyBorder()) return BORDER_NONE;
@@ -292,7 +293,7 @@ public class XSSFCellStyle implements CellStyle {
      /**
      * Get the type of border to use for the top border of the cell
      *
-     * @return border type, default value is {@link BorderStyle.NONE}
+     * @return border type, default value is {@link org.apache.poi.ss.usermodel.BorderStyle#NONE}
      */
     public BorderStyle getBorderTopEnum() {
          int style  = getBorderTop();
@@ -303,8 +304,8 @@ public class XSSFCellStyle implements CellStyle {
      * Get the color to use for the bottom border
      * <br/>
      * Color is optional. When missing, IndexedColors.AUTOMATIC is implied.
-     * @return the index of the color definition, default value is {@link org.apache.poi.ss.usermodel.IndexedColors.AUTOMATIC}
-     * @see IndexedColors
+     * @return the index of the color definition, default value is {@link org.apache.poi.ss.usermodel.IndexedColors#AUTOMATIC}
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public short getBottomBorderColor() {
         XSSFColor clr = getBottomBorderXSSFColor();
@@ -350,8 +351,8 @@ public class XSSFCellStyle implements CellStyle {
      * Note - many cells are actually filled with a foreground
      *  fill, not a background fill - see {@link #getFillForegroundColor()}
      * </p>
-     * @return fill color, default value is {@link IndexedColors.AUTOMATIC}
-     * @see IndexedColors
+     * @return fill color, default value is {@link org.apache.poi.ss.usermodel.IndexedColors#AUTOMATIC}
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public short getFillBackgroundColor() {
         XSSFColor clr = getFillBackgroundXSSFColor();
@@ -383,7 +384,7 @@ public class XSSFCellStyle implements CellStyle {
      *  background color ({@link #getFillBackgroundColor()})
      * </p>
      * @see IndexedColors
-     * @return fill color, default value is {@link IndexedColors.AUTOMATIC}
+     * @return fill color, default value is {@link org.apache.poi.ss.usermodel.IndexedColors#AUTOMATIC}
      */
     public short getFillForegroundColor() {
         XSSFColor clr = getFillForegroundXSSFColor();
@@ -406,25 +407,25 @@ public class XSSFCellStyle implements CellStyle {
 
     /**
      * Get the fill pattern
-     * @return fill pattern, default value is {@link #NO_FILL}
-     *
-     * @see #NO_FILL
-     * @see #SOLID_FOREGROUND
-     * @see #FINE_DOTS
-     * @see #ALT_BARS
-     * @see #SPARSE_DOTS
-     * @see #THICK_HORZ_BANDS
-     * @see #THICK_VERT_BANDS
-     * @see #THICK_BACKWARD_DIAG
-     * @see #THICK_FORWARD_DIAG
-     * @see #BIG_SPOTS
-     * @see #BRICKS
-     * @see #THIN_HORZ_BANDS
-     * @see #THIN_VERT_BANDS
-     * @see #THIN_BACKWARD_DIAG
-     * @see #THIN_FORWARD_DIAG
-     * @see #SQUARES
-     * @see #DIAMONDS
+     * @return fill pattern, default value is {@link org.apache.poi.ss.usermodel.CellStyle#NO_FILL}
+     *
+     * @see org.apache.poi.ss.usermodel.CellStyle#NO_FILL
+     * @see org.apache.poi.ss.usermodel.CellStyle#SOLID_FOREGROUND
+     * @see org.apache.poi.ss.usermodel.CellStyle#FINE_DOTS
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALT_BARS
+     * @see org.apache.poi.ss.usermodel.CellStyle#SPARSE_DOTS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_HORZ_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_VERT_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_BACKWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_FORWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#BIG_SPOTS
+     * @see org.apache.poi.ss.usermodel.CellStyle#BRICKS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_HORZ_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_VERT_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_BACKWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_FORWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#SQUARES
+     * @see org.apache.poi.ss.usermodel.CellStyle#DIAMONDS
      */
     public short getFillPattern() {
         if(!cellXf.getApplyFill()) return 0;
@@ -440,7 +441,7 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the fill pattern
      *
-     * @return the fill pattern, default value is {@link FillPatternType.NO_FILL}
+     * @return the fill pattern, default value is {@link org.apache.poi.ss.usermodel.FillPatternType#NO_FILL}
      */
     public FillPatternType getFillPatternEnum() {
         int style  = getFillPattern();
@@ -499,8 +500,8 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the color to use for the left border
      *
-     * @return the index of the color definition, default value is {@link IndexedColors.BLACK}
-     * @see IndexedColors
+     * @return the index of the color definition, default value is {@link org.apache.poi.ss.usermodel.IndexedColors#BLACK}
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public short getLeftBorderColor() {
         XSSFColor clr = getLeftBorderXSSFColor();
@@ -511,7 +512,7 @@ public class XSSFCellStyle implements CellStyle {
      * Get the color to use for the left border
      *
      * @return the index of the color definition or <code>null</code> if not set
-     * @see IndexedColors
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public XSSFColor getLeftBorderXSSFColor() {
         if(!cellXf.getApplyBorder()) return null;
@@ -534,8 +535,8 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the color to use for the right border
      *
-     * @return the index of the color definition, default value is {@link IndexedColors.BLACK}
-     * @see IndexedColors
+     * @return the index of the color definition, default value is {@link org.apache.poi.ss.usermodel.IndexedColors#BLACK}
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public short getRightBorderColor() {
         XSSFColor clr = getRightBorderXSSFColor();
@@ -577,8 +578,8 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the color to use for the top border
      *
-     * @return the index of the color definition, default value is {@link IndexedColors.BLACK}
-     * @see IndexedColors
+     * @return the index of the color definition, default value is {@link org.apache.poi.ss.usermodel.IndexedColors#BLACK}
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public short getTopBorderColor() {
         XSSFColor clr = getTopBorderXSSFColor();
@@ -602,11 +603,11 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the type of vertical alignment for the cell
      *
-     * @return align the type of alignment, default value is {@link #VERTICAL_BOTTOM}
-     * @see #VERTICAL_TOP
-     * @see #VERTICAL_CENTER
-     * @see #VERTICAL_BOTTOM
-     * @see #VERTICAL_JUSTIFY
+     * @return align the type of alignment, default value is {@link org.apache.poi.ss.usermodel.CellStyle#VERTICAL_BOTTOM}
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_TOP
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_CENTER
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_BOTTOM
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_JUSTIFY
      */
     public short getVerticalAlignment() {
         return (short) (getVerticalAlignmentEnum().ordinal());
@@ -615,8 +616,8 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Get the type of vertical alignment for the cell
      *
-     * @return the type of alignment, default value is {@link VerticalAlignment.BOTTOM}
-     * @see VerticalAlignment
+     * @return the type of alignment, default value is {@link org.apache.poi.ss.usermodel.VerticalAlignment#BOTTOM}
+     * @see org.apache.poi.ss.usermodel.VerticalAlignment
      */
     public VerticalAlignment getVerticalAlignmentEnum() {
         CTCellAlignment align = cellXf.getAlignment();
@@ -641,13 +642,13 @@ public class XSSFCellStyle implements CellStyle {
      * Set the type of horizontal alignment for the cell
      *
      * @param align - the type of alignment
-     * @see #ALIGN_GENERAL
-     * @see #ALIGN_LEFT
-     * @see #ALIGN_CENTER
-     * @see #ALIGN_RIGHT
-     * @see #ALIGN_FILL
-     * @see #ALIGN_JUSTIFY
-     * @see #ALIGN_CENTER_SELECTION
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_GENERAL
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_LEFT
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_CENTER
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_RIGHT
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_FILL
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_JUSTIFY
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALIGN_CENTER_SELECTION
      */
     public void setAlignment(short align) {
         getCellAlignment().setHorizontal(HorizontalAlignment.values()[align]);
@@ -667,20 +668,20 @@ public class XSSFCellStyle implements CellStyle {
      * Set the type of border to use for the bottom border of the cell
      *
      * @param border the type of border to use
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
     public void setBorderBottom(short border) {
         CTBorder ct = getCTBorder();
@@ -698,7 +699,7 @@ public class XSSFCellStyle implements CellStyle {
      * Set the type of border to use for the bottom border of the cell
      *
      * @param border - type of border to use
-     * @see BorderStyle
+     * @see org.apache.poi.ss.usermodel.BorderStyle
      */
     public void setBorderBottom(BorderStyle border) {
            setBorderBottom((short)border.ordinal());
@@ -707,20 +708,20 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Set the type of border to use for the left border of the cell
      * @param border the type of border to use
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
     public void setBorderLeft(short border) {
         CTBorder ct = getCTBorder();
@@ -747,20 +748,20 @@ public class XSSFCellStyle implements CellStyle {
      * Set the type of border to use for the right border of the cell
      *
      * @param border the type of border to use
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
    public void setBorderRight(short border) {
         CTBorder ct = getCTBorder();
@@ -787,20 +788,20 @@ public class XSSFCellStyle implements CellStyle {
      * Set the type of border to use for the top border of the cell
      *
      * @param border the type of border to use
-     * @see #BORDER_NONE
-     * @see #BORDER_THIN
-     * @see #BORDER_MEDIUM
-     * @see #BORDER_DASHED
-     * @see #BORDER_DOTTED
-     * @see #BORDER_THICK
-     * @see #BORDER_DOUBLE
-     * @see #BORDER_HAIR
-     * @see #BORDER_MEDIUM_DASHED
-     * @see #BORDER_DASH_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT
-     * @see #BORDER_DASH_DOT_DOT
-     * @see #BORDER_MEDIUM_DASH_DOT_DOT
-     * @see #BORDER_SLANTED_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_NONE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THIN
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOTTED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_THICK
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DOUBLE
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_HAIR
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASHED
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_MEDIUM_DASH_DOT_DOT
+     * @see org.apache.poi.ss.usermodel.CellStyle#BORDER_SLANTED_DASH_DOT
      */
    public void setBorderTop(short border) {
         CTBorder ct = getCTBorder();
@@ -826,7 +827,7 @@ public class XSSFCellStyle implements CellStyle {
     /**
      * Set the color to use for the bottom border
      * @param color the index of the color definition
-     * @see IndexedColors
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public void setBottomBorderColor(short color) {
         XSSFColor clr = new XSSFColor();
@@ -928,7 +929,7 @@ public class XSSFCellStyle implements CellStyle {
      * for the color to be shown in the cell.
      *
      * @param bg - the color to use
-     * @see IndexedColors
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public void setFillBackgroundColor(short bg) {
         XSSFColor clr = new XSSFColor();
@@ -965,7 +966,7 @@ public class XSSFCellStyle implements CellStyle {
      * <br/>
      * <i>Note: Ensure Foreground color is set prior to background color.</i>
      * @param fg the color to use
-     * @see IndexedColors
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public void setFillForegroundColor(short fg) {
         XSSFColor clr = new XSSFColor();
@@ -1010,26 +1011,26 @@ public class XSSFCellStyle implements CellStyle {
      * For solid cell fills (no pattern),  foregorund color is used.
      * For cell fills with patterns specified, then the cell fill color is specified by the background color.
      *
-     * @see #NO_FILL
-     * @see #SOLID_FOREGROUND
-     * @see #FINE_DOTS
-     * @see #ALT_BARS
-     * @see #SPARSE_DOTS
-     * @see #THICK_HORZ_BANDS
-     * @see #THICK_VERT_BANDS
-     * @see #THICK_BACKWARD_DIAG
-     * @see #THICK_FORWARD_DIAG
-     * @see #BIG_SPOTS
-     * @see #BRICKS
-     * @see #THIN_HORZ_BANDS
-     * @see #THIN_VERT_BANDS
-     * @see #THIN_BACKWARD_DIAG
-     * @see #THIN_FORWARD_DIAG
-     * @see #SQUARES
-     * @see #DIAMONDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#NO_FILL
+     * @see org.apache.poi.ss.usermodel.CellStyle#SOLID_FOREGROUND
+     * @see org.apache.poi.ss.usermodel.CellStyle#FINE_DOTS
+     * @see org.apache.poi.ss.usermodel.CellStyle#ALT_BARS
+     * @see org.apache.poi.ss.usermodel.CellStyle#SPARSE_DOTS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_HORZ_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_VERT_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_BACKWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#THICK_FORWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#BIG_SPOTS
+     * @see org.apache.poi.ss.usermodel.CellStyle#BRICKS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_HORZ_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_VERT_BANDS
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_BACKWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#THIN_FORWARD_DIAG
+     * @see org.apache.poi.ss.usermodel.CellStyle#SQUARES
+     * @see org.apache.poi.ss.usermodel.CellStyle#DIAMONDS
      * @see #setFillBackgroundColor(short)
      * @see #setFillForegroundColor(short)
-     * @param fp  fill pattern (set to {@link #SOLID_FOREGROUND} to fill w/foreground color)
+     * @param fp  fill pattern (set to {@link org.apache.poi.ss.usermodel.CellStyle#SOLID_FOREGROUND} to fill w/foreground color)
      */
    public void setFillPattern(short fp) {
         CTFill ct = getCTFill();
@@ -1050,7 +1051,7 @@ public class XSSFCellStyle implements CellStyle {
      * @param ptrn the fill pattern to use
      * @see #setFillBackgroundColor(short)
      * @see #setFillForegroundColor(short)
-     * @see FillPatternType
+     * @see org.apache.poi.ss.usermodel.FillPatternType
      */
     public void setFillPattern(FillPatternType ptrn) {
            setFillPattern((short)ptrn.ordinal());
@@ -1095,7 +1096,7 @@ public class XSSFCellStyle implements CellStyle {
      * Set the color to use for the left border as a indexed color value
      *
      * @param color the index of the color definition
-     * @see IndexedColors
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public void setLeftBorderColor(short color) {
         XSSFColor clr = new XSSFColor();
@@ -1135,7 +1136,7 @@ public class XSSFCellStyle implements CellStyle {
      * Set the color to use for the right border
      *
      * @param color the index of the color definition
-     * @see IndexedColors
+     * @see org.apache.poi.ss.usermodel.IndexedColors
      */
     public void setRightBorderColor(short color) {
         XSSFColor clr = new XSSFColor();
@@ -1216,11 +1217,11 @@ public class XSSFCellStyle implements CellStyle {
      * Set the type of vertical alignment for the cell
      *
      * @param align - align the type of alignment
-     * @see #VERTICAL_TOP
-     * @see #VERTICAL_CENTER
-     * @see #VERTICAL_BOTTOM
-     * @see #VERTICAL_JUSTIFY
-     * @see VerticalAlignment
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_TOP
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_CENTER
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_BOTTOM
+     * @see org.apache.poi.ss.usermodel.CellStyle#VERTICAL_JUSTIFY
+     * @see org.apache.poi.ss.usermodel.VerticalAlignment
      */
     public void setVerticalAlignment(short align) {
         getCellAlignment().setVertical(VerticalAlignment.values()[align]);
index d24b26451520af17ce3e3cad690d3b37258b1545..c4af9bdafd26a75cabfbcd02f9f185a434e62f8d 100644 (file)
@@ -38,7 +38,7 @@ public class XSSFFont implements Font {
     public static final short DEFAULT_FONT_SIZE = 11;
     /**
      * Default font color is black
-     * @see IndexedColors.BLACK
+     * @see org.apache.poi.ss.usermodel.IndexedColors#BLACK
      */
     public static final short DEFAULT_FONT_COLOR = IndexedColors.BLACK.getIndex();
 
index 19f75aab4addfa6cd2aba64dd65418470fdac72e..cd20997c87a5dc4e8b57089c6442af37e3107846 100644 (file)
-/* ====================================================================\r
-   Licensed to the Apache Software Foundation (ASF) under one or more\r
-   contributor license agreements.  See the NOTICE file distributed with\r
-   this work for additional information regarding copyright ownership.\r
-   The ASF licenses this file to You under the Apache License, Version 2.0\r
-   (the "License"); you may not use this file except in compliance with\r
-   the License.  You may obtain a copy of the License at\r
-\r
-       http://www.apache.org/licenses/LICENSE-2.0\r
-\r
-   Unless required by applicable law or agreed to in writing, software\r
-   distributed under the License is distributed on an "AS IS" BASIS,\r
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-   See the License for the specific language governing permissions and\r
-   limitations under the License.\r
-==================================================================== */\r
-\r
-package org.apache.poi.xssf.usermodel;\r
-\r
-import java.util.Iterator;\r
-\r
-import org.apache.poi.hssf.record.formula.eval.BoolEval;\r
-import org.apache.poi.hssf.record.formula.eval.ErrorEval;\r
-import org.apache.poi.hssf.record.formula.eval.NumberEval;\r
-import org.apache.poi.hssf.record.formula.eval.StringEval;\r
-import org.apache.poi.hssf.record.formula.eval.ValueEval;\r
-import org.apache.poi.hssf.usermodel.HSSFCell;\r
-import org.apache.poi.ss.formula.WorkbookEvaluator;\r
-import org.apache.poi.ss.usermodel.Cell;\r
-import org.apache.poi.ss.usermodel.CellValue;\r
-import org.apache.poi.ss.usermodel.FormulaEvaluator;\r
-import org.apache.poi.ss.usermodel.Row;\r
-import org.apache.poi.ss.usermodel.Sheet;\r
-\r
-/**\r
- * Evaluates formula cells.<p/>\r
- *\r
- * For performance reasons, this class keeps a cache of all previously calculated intermediate\r
- * cell values.  Be sure to call {@link #clearCache()} if any workbook cells are changed between\r
- * calls to evaluate~ methods on this class.\r
- *\r
- * @author Amol S. Deshmukh &lt; amolweb at ya hoo dot com &gt;\r
- * @author Josh Micich\r
- */\r
-public class XSSFFormulaEvaluator implements FormulaEvaluator {\r
-\r
-       private WorkbookEvaluator _bookEvaluator;\r
-\r
-       public XSSFFormulaEvaluator(XSSFWorkbook workbook) {\r
-               _bookEvaluator = new WorkbookEvaluator(XSSFEvaluationWorkbook.create(workbook));\r
-       }\r
-\r
-       /**\r
-        * Should be called whenever there are major changes (e.g. moving sheets) to input cells\r
-        * in the evaluated workbook.\r
-        * Failure to call this method after changing cell values will cause incorrect behaviour\r
-        * of the evaluate~ methods of this class\r
-        */\r
-       public void clearAllCachedResultValues() {\r
-               _bookEvaluator.clearAllCachedResultValues();\r
-       }\r
-       public void notifySetFormula(Cell cell) {\r
-               _bookEvaluator.notifyUpdateCell(new XSSFEvaluationCell((XSSFCell)cell));\r
-       }\r
-       public void notifyDeleteCell(Cell cell) {\r
-               _bookEvaluator.notifyDeleteCell(new XSSFEvaluationCell((XSSFCell)cell));\r
-       }\r
-\r
-       /**\r
-        * If cell contains a formula, the formula is evaluated and returned,\r
-        * else the CellValue simply copies the appropriate cell value from\r
-        * the cell and also its cell type. This method should be preferred over\r
-        * evaluateInCell() when the call should not modify the contents of the\r
-        * original cell.\r
-        * @param cell\r
-        */\r
-       public CellValue evaluate(Cell cell) {\r
-               if (cell == null) {\r
-                       return null;\r
-               }\r
-\r
-               switch (cell.getCellType()) {\r
-                       case XSSFCell.CELL_TYPE_BOOLEAN:\r
-                               return CellValue.valueOf(cell.getBooleanCellValue());\r
-                       case XSSFCell.CELL_TYPE_ERROR:\r
-                               return CellValue.getError(cell.getErrorCellValue());\r
-                       case XSSFCell.CELL_TYPE_FORMULA:\r
-                               return evaluateFormulaCellValue(cell);\r
-                       case XSSFCell.CELL_TYPE_NUMERIC:\r
-                               return new CellValue(cell.getNumericCellValue());\r
-                       case XSSFCell.CELL_TYPE_STRING:\r
-                               return new CellValue(cell.getRichStringCellValue().getString());\r
-               }\r
-               throw new IllegalStateException("Bad cell type (" + cell.getCellType() + ")");\r
-       }\r
-\r
-\r
-       /**\r
-        * If cell contains formula, it evaluates the formula,\r
-        *  and saves the result of the formula. The cell\r
-        *  remains as a formula cell.\r
-        * Else if cell does not contain formula, this method leaves\r
-        *  the cell unchanged.\r
-        * Note that the type of the formula result is returned,\r
-        *  so you know what kind of value is also stored with\r
-        *  the formula.\r
-        * <pre>\r
-        * int evaluatedCellType = evaluator.evaluateFormulaCell(cell);\r
-        * </pre>\r
-        * Be aware that your cell will hold both the formula,\r
-        *  and the result. If you want the cell replaced with\r
-        *  the result of the formula, use {@link #evaluateInCell(HSSFCell)}\r
-        * @param cell The cell to evaluate\r
-        * @return The type of the formula result (the cell's type remains as HSSFCell.CELL_TYPE_FORMULA however)\r
-        */\r
-       public int evaluateFormulaCell(Cell cell) {\r
-               if (cell == null || cell.getCellType() != XSSFCell.CELL_TYPE_FORMULA) {\r
-                       return -1;\r
-               }\r
-               CellValue cv = evaluateFormulaCellValue(cell);\r
-               // cell remains a formula cell, but the cached value is changed\r
-               setCellValue(cell, cv);\r
-               return cv.getCellType();\r
-       }\r
-\r
-       /**\r
-        * If cell contains formula, it evaluates the formula, and\r
-        *  puts the formula result back into the cell, in place\r
-        *  of the old formula.\r
-        * Else if cell does not contain formula, this method leaves\r
-        *  the cell unchanged.\r
-        * Note that the same instance of HSSFCell is returned to\r
-        * allow chained calls like:\r
-        * <pre>\r
-        * int evaluatedCellType = evaluator.evaluateInCell(cell).getCellType();\r
-        * </pre>\r
-        * Be aware that your cell value will be changed to hold the\r
-        *  result of the formula. If you simply want the formula\r
-        *  value computed for you, use {@link #evaluateFormulaCell(HSSFCell)}\r
-        * @param cell\r
-        */\r
-       public XSSFCell evaluateInCell(Cell cell) {\r
-               if (cell == null) {\r
-                       return null;\r
-               }\r
-               XSSFCell result = (XSSFCell) cell;\r
-               if (cell.getCellType() == XSSFCell.CELL_TYPE_FORMULA) {\r
-                       CellValue cv = evaluateFormulaCellValue(cell);\r
-                       setCellType(cell, cv); // cell will no longer be a formula cell\r
-                       setCellValue(cell, cv);\r
-               }\r
-               return result;\r
-       }\r
-       private static void setCellType(Cell cell, CellValue cv) {\r
-               int cellType = cv.getCellType();\r
-               switch (cellType) {\r
-                       case XSSFCell.CELL_TYPE_BOOLEAN:\r
-                       case XSSFCell.CELL_TYPE_ERROR:\r
-                       case XSSFCell.CELL_TYPE_NUMERIC:\r
-                       case XSSFCell.CELL_TYPE_STRING:\r
-                               cell.setCellType(cellType);\r
-                               return;\r
-                       case XSSFCell.CELL_TYPE_BLANK:\r
-                               // never happens - blanks eventually get translated to zero\r
-                       case XSSFCell.CELL_TYPE_FORMULA:\r
-                               // this will never happen, we have already evaluated the formula\r
-               }\r
-               throw new IllegalStateException("Unexpected cell value type (" + cellType + ")");\r
-       }\r
-\r
-       private static void setCellValue(Cell cell, CellValue cv) {\r
-               int cellType = cv.getCellType();\r
-               switch (cellType) {\r
-                       case XSSFCell.CELL_TYPE_BOOLEAN:\r
-                               cell.setCellValue(cv.getBooleanValue());\r
-                               break;\r
-                       case XSSFCell.CELL_TYPE_ERROR:\r
-                               cell.setCellErrorValue(cv.getErrorValue());\r
-                               break;\r
-                       case XSSFCell.CELL_TYPE_NUMERIC:\r
-                               cell.setCellValue(cv.getNumberValue());\r
-                               break;\r
-                       case XSSFCell.CELL_TYPE_STRING:\r
-                               cell.setCellValue(new XSSFRichTextString(cv.getStringValue()));\r
-                               break;\r
-                       case XSSFCell.CELL_TYPE_BLANK:\r
-                               // never happens - blanks eventually get translated to zero\r
-                       case XSSFCell.CELL_TYPE_FORMULA:\r
-                               // this will never happen, we have already evaluated the formula\r
-                       default:\r
-                               throw new IllegalStateException("Unexpected cell value type (" + cellType + ")");\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Loops over all cells in all sheets of the supplied\r
-        *  workbook.\r
-        * For cells that contain formulas, their formulas are\r
-        *  evaluated, and the results are saved. These cells\r
-        *  remain as formula cells.\r
-        * For cells that do not contain formulas, no changes\r
-        *  are made.\r
-        * This is a helpful wrapper around looping over all\r
-        *  cells, and calling evaluateFormulaCell on each one.\r
-        */\r
-       public static void evaluateAllFormulaCells(XSSFWorkbook wb) {\r
-               XSSFFormulaEvaluator evaluator = new XSSFFormulaEvaluator(wb);\r
-               for(int i=0; i<wb.getNumberOfSheets(); i++) {\r
-                       Sheet sheet = wb.getSheetAt(i);\r
-\r
-                       for (Iterator<Row> rit = sheet.rowIterator(); rit.hasNext();) {\r
-                               Row r = rit.next();\r
-\r
-                               for (Iterator cit = r.cellIterator(); cit.hasNext();) {\r
-                                       XSSFCell c = (XSSFCell) cit.next();\r
-                                       if (c.getCellType() == XSSFCell.CELL_TYPE_FORMULA)\r
-                                               evaluator.evaluateFormulaCell(c);\r
-                               }\r
-                       }\r
-               }\r
-       }\r
-\r
-       /**\r
-        * Returns a CellValue wrapper around the supplied ValueEval instance.\r
-        * @param eval\r
-        */\r
-       private CellValue evaluateFormulaCellValue(Cell cell) {\r
-               ValueEval eval = _bookEvaluator.evaluate(new XSSFEvaluationCell((XSSFCell) cell));\r
-               if (eval instanceof NumberEval) {\r
-                       NumberEval ne = (NumberEval) eval;\r
-                       return new CellValue(ne.getNumberValue());\r
-               }\r
-               if (eval instanceof BoolEval) {\r
-                       BoolEval be = (BoolEval) eval;\r
-                       return CellValue.valueOf(be.getBooleanValue());\r
-               }\r
-               if (eval instanceof StringEval) {\r
-                       StringEval ne = (StringEval) eval;\r
-                       return new CellValue(ne.getStringValue());\r
-               }\r
-               if (eval instanceof ErrorEval) {\r
-                       return CellValue.getError(((ErrorEval)eval).getErrorCode());\r
-               }\r
-               throw new RuntimeException("Unexpected eval class (" + eval.getClass().getName() + ")");\r
-       }\r
-}\r
+/* ====================================================================
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+==================================================================== */
+
+package org.apache.poi.xssf.usermodel;
+
+import java.util.Iterator;
+
+import org.apache.poi.hssf.record.formula.eval.BoolEval;
+import org.apache.poi.hssf.record.formula.eval.ErrorEval;
+import org.apache.poi.hssf.record.formula.eval.NumberEval;
+import org.apache.poi.hssf.record.formula.eval.StringEval;
+import org.apache.poi.hssf.record.formula.eval.ValueEval;
+import org.apache.poi.ss.formula.WorkbookEvaluator;
+import org.apache.poi.ss.usermodel.Cell;
+import org.apache.poi.ss.usermodel.CellValue;
+import org.apache.poi.ss.usermodel.FormulaEvaluator;
+import org.apache.poi.ss.usermodel.Row;
+import org.apache.poi.ss.usermodel.Sheet;
+
+/**
+ * Evaluates formula cells.<p/>
+ *
+ * For performance reasons, this class keeps a cache of all previously calculated intermediate
+ * cell values.  Be sure to call {@link #clearAllCachedResultValues()} if any workbook cells are changed between
+ * calls to evaluate~ methods on this class.
+ *
+ * @author Amol S. Deshmukh &lt; amolweb at ya hoo dot com &gt;
+ * @author Josh Micich
+ */
+public class XSSFFormulaEvaluator implements FormulaEvaluator {
+
+       private WorkbookEvaluator _bookEvaluator;
+
+       public XSSFFormulaEvaluator(XSSFWorkbook workbook) {
+               _bookEvaluator = new WorkbookEvaluator(XSSFEvaluationWorkbook.create(workbook));
+       }
+
+       /**
+        * Should be called whenever there are major changes (e.g. moving sheets) to input cells
+        * in the evaluated workbook.
+        * Failure to call this method after changing cell values will cause incorrect behaviour
+        * of the evaluate~ methods of this class
+        */
+       public void clearAllCachedResultValues() {
+               _bookEvaluator.clearAllCachedResultValues();
+       }
+       public void notifySetFormula(Cell cell) {
+               _bookEvaluator.notifyUpdateCell(new XSSFEvaluationCell((XSSFCell)cell));
+       }
+       public void notifyDeleteCell(Cell cell) {
+               _bookEvaluator.notifyDeleteCell(new XSSFEvaluationCell((XSSFCell)cell));
+       }
+
+       /**
+        * If cell contains a formula, the formula is evaluated and returned,
+        * else the CellValue simply copies the appropriate cell value from
+        * the cell and also its cell type. This method should be preferred over
+        * evaluateInCell() when the call should not modify the contents of the
+        * original cell.
+        * @param cell
+        */
+       public CellValue evaluate(Cell cell) {
+               if (cell == null) {
+                       return null;
+               }
+
+               switch (cell.getCellType()) {
+                       case XSSFCell.CELL_TYPE_BOOLEAN:
+                               return CellValue.valueOf(cell.getBooleanCellValue());
+                       case XSSFCell.CELL_TYPE_ERROR:
+                               return CellValue.getError(cell.getErrorCellValue());
+                       case XSSFCell.CELL_TYPE_FORMULA:
+                               return evaluateFormulaCellValue(cell);
+                       case XSSFCell.CELL_TYPE_NUMERIC:
+                               return new CellValue(cell.getNumericCellValue());
+                       case XSSFCell.CELL_TYPE_STRING:
+                               return new CellValue(cell.getRichStringCellValue().getString());
+               }
+               throw new IllegalStateException("Bad cell type (" + cell.getCellType() + ")");
+       }
+
+
+       /**
+        * If cell contains formula, it evaluates the formula,
+        *  and saves the result of the formula. The cell
+        *  remains as a formula cell.
+        * Else if cell does not contain formula, this method leaves
+        *  the cell unchanged.
+        * Note that the type of the formula result is returned,
+        *  so you know what kind of value is also stored with
+        *  the formula.
+        * <pre>
+        * int evaluatedCellType = evaluator.evaluateFormulaCell(cell);
+        * </pre>
+        * Be aware that your cell will hold both the formula,
+        *  and the result. If you want the cell replaced with
+        *  the result of the formula, use {@link #evaluate(org.apache.poi.ss.usermodel.Cell)} }
+        * @param cell The cell to evaluate
+        * @return The type of the formula result (the cell's type remains as HSSFCell.CELL_TYPE_FORMULA however)
+        */
+       public int evaluateFormulaCell(Cell cell) {
+               if (cell == null || cell.getCellType() != XSSFCell.CELL_TYPE_FORMULA) {
+                       return -1;
+               }
+               CellValue cv = evaluateFormulaCellValue(cell);
+               // cell remains a formula cell, but the cached value is changed
+               setCellValue(cell, cv);
+               return cv.getCellType();
+       }
+
+       /**
+        * If cell contains formula, it evaluates the formula, and
+        *  puts the formula result back into the cell, in place
+        *  of the old formula.
+        * Else if cell does not contain formula, this method leaves
+        *  the cell unchanged.
+        * Note that the same instance of HSSFCell is returned to
+        * allow chained calls like:
+        * <pre>
+        * int evaluatedCellType = evaluator.evaluateInCell(cell).getCellType();
+        * </pre>
+        * Be aware that your cell value will be changed to hold the
+        *  result of the formula. If you simply want the formula
+        *  value computed for you, use {@link #evaluateFormulaCell(org.apache.poi.ss.usermodel.Cell)} }
+        * @param cell
+        */
+       public XSSFCell evaluateInCell(Cell cell) {
+               if (cell == null) {
+                       return null;
+               }
+               XSSFCell result = (XSSFCell) cell;
+               if (cell.getCellType() == XSSFCell.CELL_TYPE_FORMULA) {
+                       CellValue cv = evaluateFormulaCellValue(cell);
+                       setCellType(cell, cv); // cell will no longer be a formula cell
+                       setCellValue(cell, cv);
+               }
+               return result;
+       }
+       private static void setCellType(Cell cell, CellValue cv) {
+               int cellType = cv.getCellType();
+               switch (cellType) {
+                       case XSSFCell.CELL_TYPE_BOOLEAN:
+                       case XSSFCell.CELL_TYPE_ERROR:
+                       case XSSFCell.CELL_TYPE_NUMERIC:
+                       case XSSFCell.CELL_TYPE_STRING:
+                               cell.setCellType(cellType);
+                               return;
+                       case XSSFCell.CELL_TYPE_BLANK:
+                               // never happens - blanks eventually get translated to zero
+                       case XSSFCell.CELL_TYPE_FORMULA:
+                               // this will never happen, we have already evaluated the formula
+               }
+               throw new IllegalStateException("Unexpected cell value type (" + cellType + ")");
+       }
+
+       private static void setCellValue(Cell cell, CellValue cv) {
+               int cellType = cv.getCellType();
+               switch (cellType) {
+                       case XSSFCell.CELL_TYPE_BOOLEAN:
+                               cell.setCellValue(cv.getBooleanValue());
+                               break;
+                       case XSSFCell.CELL_TYPE_ERROR:
+                               cell.setCellErrorValue(cv.getErrorValue());
+                               break;
+                       case XSSFCell.CELL_TYPE_NUMERIC:
+                               cell.setCellValue(cv.getNumberValue());
+                               break;
+                       case XSSFCell.CELL_TYPE_STRING:
+                               cell.setCellValue(new XSSFRichTextString(cv.getStringValue()));
+                               break;
+                       case XSSFCell.CELL_TYPE_BLANK:
+                               // never happens - blanks eventually get translated to zero
+                       case XSSFCell.CELL_TYPE_FORMULA:
+                               // this will never happen, we have already evaluated the formula
+                       default:
+                               throw new IllegalStateException("Unexpected cell value type (" + cellType + ")");
+               }
+       }
+
+       /**
+        * Loops over all cells in all sheets of the supplied
+        *  workbook.
+        * For cells that contain formulas, their formulas are
+        *  evaluated, and the results are saved. These cells
+        *  remain as formula cells.
+        * For cells that do not contain formulas, no changes
+        *  are made.
+        * This is a helpful wrapper around looping over all
+        *  cells, and calling evaluateFormulaCell on each one.
+        */
+       public static void evaluateAllFormulaCells(XSSFWorkbook wb) {
+               XSSFFormulaEvaluator evaluator = new XSSFFormulaEvaluator(wb);
+               for(int i=0; i<wb.getNumberOfSheets(); i++) {
+                       Sheet sheet = wb.getSheetAt(i);
+
+                       for (Iterator<Row> rit = sheet.rowIterator(); rit.hasNext();) {
+                               Row r = rit.next();
+
+                               for (Iterator cit = r.cellIterator(); cit.hasNext();) {
+                                       XSSFCell c = (XSSFCell) cit.next();
+                                       if (c.getCellType() == XSSFCell.CELL_TYPE_FORMULA)
+                                               evaluator.evaluateFormulaCell(c);
+                               }
+                       }
+               }
+       }
+
+       /**
+        * Returns a CellValue wrapper around the supplied ValueEval instance.
+        */
+       private CellValue evaluateFormulaCellValue(Cell cell) {
+               ValueEval eval = _bookEvaluator.evaluate(new XSSFEvaluationCell((XSSFCell) cell));
+               if (eval instanceof NumberEval) {
+                       NumberEval ne = (NumberEval) eval;
+                       return new CellValue(ne.getNumberValue());
+               }
+               if (eval instanceof BoolEval) {
+                       BoolEval be = (BoolEval) eval;
+                       return CellValue.valueOf(be.getBooleanValue());
+               }
+               if (eval instanceof StringEval) {
+                       StringEval ne = (StringEval) eval;
+                       return new CellValue(ne.getStringValue());
+               }
+               if (eval instanceof ErrorEval) {
+                       return CellValue.getError(((ErrorEval)eval).getErrorCode());
+               }
+               throw new RuntimeException("Unexpected eval class (" + eval.getClass().getName() + ")");
+       }
+}
index 2e1394b4420e7eea4db35ecdf6c16d33836ffb1d..f776aafe379d80044992869f89fa8506700be44b 100755 (executable)
@@ -223,7 +223,8 @@ public class XSSFPicture extends XSSFShape {
      * Return the dimension of this image\r
      *\r
      * @param part the package part holding raw picture data\r
-     * @param type type of the picture: {@link Workbook#PICTURE_TYPE_JPEG, Workbook#PICTURE_TYPE_PNG or Workbook#PICTURE_TYPE_DIB)\r
+     * @param type type of the picture: {@link Workbook#PICTURE_TYPE_JPEG},\r
+     * {@link Workbook#PICTURE_TYPE_PNG} or {@link Workbook#PICTURE_TYPE_DIB}\r
      *\r
      * @return image dimension in pixels\r
      */\r
index 851c85af5dd75d4a3c258f38b03eb1854882317d..736eea053c2718f31dd63320bad00fb4d2de98c1 100644 (file)
@@ -101,12 +101,12 @@ public class XSSFPictureData extends POIXMLDocumentPart implements PictureData {
      * Return an integer constant that specifies type of this picture
      *
      * @return an integer constant that specifies type of this picture 
-     * @see Workbook#PICTURE_TYPE_EMF
-     * @see Workbook#PICTURE_TYPE_WMF
-     * @see Workbook#PICTURE_TYPE_PICT
-     * @see Workbook#PICTURE_TYPE_JPEG
-     * @see Workbook#PICTURE_TYPE_PNG
-     * @see Workbook#PICTURE_TYPE_DIB
+     * @see org.apache.poi.ss.usermodel.Workbook#PICTURE_TYPE_EMF
+     * @see org.apache.poi.ss.usermodel.Workbook#PICTURE_TYPE_WMF
+     * @see org.apache.poi.ss.usermodel.Workbook#PICTURE_TYPE_PICT
+     * @see org.apache.poi.ss.usermodel.Workbook#PICTURE_TYPE_JPEG
+     * @see org.apache.poi.ss.usermodel.Workbook#PICTURE_TYPE_PNG
+     * @see org.apache.poi.ss.usermodel.Workbook#PICTURE_TYPE_DIB
      */
     public int getPictureType(){
         String contentType = getPackagePart().getContentType();
index 792e14ca8f99140432f70783dd09a58680e63429..539e014d97a524f47f565d6352e61ff25b52ade2 100644 (file)
@@ -163,7 +163,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
 
     /**
      * Returns the cell at the given (0 based) index,
-     *  with the {@link MissingCellPolicy} from the parent Workbook.
+     *  with the {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy} from the parent Workbook.
      *
      * @return the cell at the given (0 based) index
      */
@@ -172,7 +172,7 @@ public class XSSFRow implements Row, Comparable<XSSFRow> {
     }
 
     /**
-     * Returns the cell at the given (0 based) index, with the specified {@link MissingCellPolicy}
+     * Returns the cell at the given (0 based) index, with the specified {@link org.apache.poi.ss.usermodel.Row.MissingCellPolicy}
      *
      * @return the cell at the given (0 based) index
      * @throws IllegalArgumentException if cellnum < 0 or the specified MissingCellPolicy is invalid
index de59bb3fa0fdcd17eb60fca4935d361d00352242..5a42033634c43da6b2e050654ca1d2744325c6e3 100644 (file)
@@ -254,12 +254,12 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Iterable<X
      * @param format            The format of the picture.
      *
      * @return the index to this picture (0 based), the added picture can be obtained from {@link #getAllPictures()} .
-     * @see #PICTURE_TYPE_EMF
-     * @see #PICTURE_TYPE_WMF
-     * @see #PICTURE_TYPE_PICT
-     * @see #PICTURE_TYPE_JPEG
-     * @see #PICTURE_TYPE_PNG
-     * @see #PICTURE_TYPE_DIB
+     * @see Workbook#PICTURE_TYPE_EMF
+     * @see Workbook#PICTURE_TYPE_WMF
+     * @see Workbook#PICTURE_TYPE_PICT
+     * @see Workbook#PICTURE_TYPE_JPEG
+     * @see Workbook#PICTURE_TYPE_PNG
+     * @see Workbook#PICTURE_TYPE_DIB
      * @see #getAllPictures()
      */
     public int addPicture(byte[] pictureData, int format) {
@@ -283,12 +283,12 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Iterable<X
      * @param format            The format of the picture.
      *
      * @return the index to this picture (0 based), the added picture can be obtained from {@link #getAllPictures()} .
-     * @see #PICTURE_TYPE_EMF
-     * @see #PICTURE_TYPE_WMF
-     * @see #PICTURE_TYPE_PICT
-     * @see #PICTURE_TYPE_JPEG
-     * @see #PICTURE_TYPE_PNG
-     * @see #PICTURE_TYPE_DIB
+     * @see Workbook#PICTURE_TYPE_EMF
+     * @see Workbook#PICTURE_TYPE_WMF
+     * @see Workbook#PICTURE_TYPE_PICT
+     * @see Workbook#PICTURE_TYPE_JPEG
+     * @see Workbook#PICTURE_TYPE_PNG
+     * @see Workbook#PICTURE_TYPE_DIB
      * @see #getAllPictures()
      */
     public int addPicture(InputStream is, int format) throws IOException {
index dd708d79b3cf2891f404b13b47d2540dc8fe1674..32d9dc62aa7408517254be8ae56a23c2b3b363dd 100644 (file)
@@ -111,10 +111,6 @@ public abstract class XSSFHeaderFooter implements HeaderFooter {
         return this.headerFooter;
     }
 
-    /**
-     * 
-     * @return
-     */
     public String getValue() {
         String value = getText();
         if(value == null)
index 4b1889a917de302435c8b1bda6cbfd25591a1fa4..656ad1fbb9718a38a4e94dc442ffdbbf2107b16b 100755 (executable)
@@ -78,7 +78,7 @@ public class ActiveXShape extends Picture {
     /**\r
      * Assign a control to this shape\r
      *\r
-     * @see {@link org.apache.poi.hslf.usermodel.SlideShow#addMovie(String, int)}\r
+     * @see org.apache.poi.hslf.usermodel.SlideShow#addMovie(String, int)\r
      * @param idx  the index of the movie\r
      */\r
     public void setActiveXIndex(int idx){\r
index 4cf7037d1341bf93d34d69dbed1f52967b67a7ff..58ea15b1c9e5887ef288d0f92f6af4dd64c1bbbe 100755 (executable)
@@ -95,7 +95,7 @@ public class MovieShape extends Picture {
     /**\r
      * Assign a movie to this shape\r
      *\r
-     * @see {@link org.apache.poi.hslf.usermodel.SlideShow#addMovie(String, int)}\r
+     * @see org.apache.poi.hslf.usermodel.SlideShow#addMovie(String, int)\r
      * @param idx  the index of the movie\r
      */\r
     public void setMovieIndex(int idx){\r
index 3f574c36fae5a57b1fe2248eef868aaa2fa56c49..642b569461a4b17184cf855f13232f13a3e174f6 100755 (executable)
@@ -104,7 +104,6 @@ public class OLEShape extends Picture {
      * 5. CString (4026), Instance ClipboardName (3) that appears in the paste special dialog.\r
      * 6. MetaFile( 4033), optional\r
      * </p>\r
-     * @return\r
      */\r
     public ExEmbed getExEmbed(){\r
         if(_exEmbed == null){\r
index 66982ea20824188b13f7eb788e92668d33cd2c5d..4de22e50c38796810b19bc744060773dd2d02f64 100755 (executable)
@@ -203,14 +203,14 @@ public class AnimationInfoAtom extends RecordAtom
 \r
     /**\r
      * A signed integer that specifies the delay time, in milliseconds, before the animation starts to play.\r
-     * If {@link Automatic} is 0x1, this value MUST be greater than or equal to 0; otherwise, this field MUST be ignored.\r
+     * If {@link #Automatic} is 0x1, this value MUST be greater than or equal to 0; otherwise, this field MUST be ignored.\r
      */\r
     public int getDelayTime(){\r
         return LittleEndian.getInt(_recdata, 12);\r
     }\r
     /**\r
      * A signed integer that specifies the delay time, in milliseconds, before the animation starts to play.\r
-     * If {@link Automatic} is 0x1, this value MUST be greater than or equal to 0; otherwise, this field MUST be ignored.\r
+     * If {@link #Automatic} is 0x1, this value MUST be greater than or equal to 0; otherwise, this field MUST be ignored.\r
      */\r
     public void setDelayTime(int id){\r
          LittleEndian.putInt(_recdata, 12, id);\r
index a9457a6dee6b112e84b23aa24a16c8d3a5d3902f..1c90b95960af324b23e2d7240f53720a6ac6ee55 100644 (file)
@@ -34,13 +34,15 @@ public class HeadersFootersAtom extends RecordAtom {
 \r
     /**\r
      * A bit that specifies whether the date is displayed in the footer.\r
-     * @see {@link #getMask()}, {@link #setMask(int)}},\r
+     * @see #getMask()\r
+     * @see #setMask(int)\r
      */\r
     public static final int fHasDate = 1;\r
 \r
     /**\r
      * A bit that specifies whether the current datetime is used for displaying the datetime.\r
-     * @see {@link #getMask()}, {@link #setMask(int)}},\r
+     * @see #getMask()\r
+     * @see #setMask(int)\r
      */\r
     public static final int fHasTodayDate = 2;\r
 \r
@@ -48,28 +50,32 @@ public class HeadersFootersAtom extends RecordAtom {
      * A bit that specifies whether the date specified in UserDateAtom record\r
      * is used for displaying the datetime.\r
      *\r
-     * @see {@link #getMask()}, {@link #setMask(int)}},\r
+     * @see #getMask()\r
+     * @see #setMask(int)\r
      */\r
      public static final int fHasUserDate = 4;\r
 \r
     /**\r
      * A bit that specifies whether the slide number is displayed in the footer.\r
      * \r
-     * @see {@link #getMask()}, {@link #setMask(int)}},\r
+     * @see #getMask()\r
+     * @see #setMask(int)\r
      */\r
     public static final int fHasSlideNumber = 8;\r
 \r
     /**\r
      * bit that specifies whether the header text is displayed.\r
      *\r
-     * @see {@link #getMask()}, {@link #setMask(int)}},\r
+     * @see #getMask()\r
+     * @see #setMask(int)\r
      */\r
     public static final int fHasHeader = 16;\r
 \r
     /**\r
      * bit that specifies whether the footer text is displayed.\r
      *\r
-     * @see {@link #getMask()}, {@link #setMask(int)}},\r
+     * @see #getMask()\r
+     * @see #setMask(int)\r
      */\r
     public static final int fHasFooter = 32;\r
 \r
index 3669a5333ebd222d34f6914696222285ad049d1c..46bebadcc68c38c1e16567404ac50648fd4da2b7 100644 (file)
@@ -75,7 +75,6 @@ public class MAPIMessage {
        /**
         * Gets a string value based on the passed chunk.
         * @param chunk
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getStringFromChunk(StringChunk chunk) throws ChunkNotFoundException {
@@ -97,7 +96,6 @@ public class MAPIMessage {
 
        /**
         * Gets the subject line of the Outlook Message
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getSubject() throws ChunkNotFoundException {
@@ -108,7 +106,6 @@ public class MAPIMessage {
        /**
         * Gets the display value of the "TO" line of the outlook message
         * This is not the actual list of addresses/values that will be sent to if you click Reply in the email.
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getDisplayTo() throws ChunkNotFoundException {
@@ -118,7 +115,6 @@ public class MAPIMessage {
        /**
         * Gets the display value of the "FROM" line of the outlook message
         * This is not the actual address that was sent from but the formated display of the user name.
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getDisplayFrom() throws ChunkNotFoundException {
@@ -128,7 +124,6 @@ public class MAPIMessage {
        /**
         * Gets the display value of the "TO" line of the outlook message
         * This is not the actual list of addresses/values that will be sent to if you click Reply in the email.
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getDisplayCC() throws ChunkNotFoundException {
@@ -138,7 +133,6 @@ public class MAPIMessage {
        /**
         * Gets the display value of the "TO" line of the outlook message
         * This is not the actual list of addresses/values that will be sent to if you click Reply in the email.
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getDisplayBCC() throws ChunkNotFoundException {
@@ -149,7 +143,6 @@ public class MAPIMessage {
        /**
         * Gets the conversation topic of the parsed Outlook Message.
         * This is the part of the subject line that is after the RE: and FWD:
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getConversationTopic() throws ChunkNotFoundException {
@@ -161,7 +154,6 @@ public class MAPIMessage {
         * (Yes, you can use this to determine if a message is a calendar item, note, or actual outlook Message)
         * For emails the class will be IPM.Note
         * 
-        * @return
         * @throws ChunkNotFoundException
         */
        public String getMessageClass() throws ChunkNotFoundException {
index 785a336fac5070e2e1d1fdb22c867eb40d2abc61..7eaca4f1b79a09be3e805d681d71eec0f74a1fb2 100644 (file)
@@ -26,7 +26,6 @@ abstract public class Chunk {
        
        /**
         * Gets the id of this chunk
-        * @return
         */
        public int getChunkId() {
                return this.chunkId;
@@ -34,7 +33,6 @@ abstract public class Chunk {
        
        /**
         * Gets the numeric type of this chunk.
-        * @return
         */
        public int getType() {
                return this.type;
@@ -42,7 +40,6 @@ abstract public class Chunk {
        
        /**
         * Creates a string to use to identify this chunk in the POI file system object.
-        * @return
         */
        public String getEntryName() {
                String type = Integer.toHexString(this.type);
@@ -56,7 +53,6 @@ abstract public class Chunk {
        
        /**
         * Gets a reference to a ByteArrayOutputStream that contains the value of this chunk.
-        * @return
         */
        public abstract ByteArrayOutputStream getValueByteArray();
        
index c1e174e08e1c9cca32edc2f63efb411db4d466b6..108a28b4c073b73f8d87697e54d9775e45995aa7 100644 (file)
@@ -66,7 +66,6 @@ public class POIFSChunkParser {
 
        /**
         * Get a reference to the FileSystem object that this object is currently using.
-        * @return
         */
        public POIFSFileSystem getFileSystem() {
                return this.fs;
@@ -117,7 +116,6 @@ public class POIFSChunkParser {
        /**
         * Pull the chunk data that's stored in this object's hashmap out and return it as a HashMap.
         * @param entryName
-        * @return
         */
        public Object getChunk(HashMap dirMap, String entryName) {
                if(dirMap == null) return null;
@@ -143,8 +141,8 @@ public class POIFSChunkParser {
        
        /**
         * Pulls a ByteArrayOutputStream from this objects HashMap, this can be used to read a byte array of the contents of the given chunk.
-        * @param directoryMap, chunk
-        * @return
+        * @param dirNode
+     * @param chunk
         * @throws ChunkNotFoundException
         */
        public Chunk getDocumentNode(HashMap dirNode, Chunk chunk) throws ChunkNotFoundException {
@@ -161,7 +159,6 @@ public class POIFSChunkParser {
        /**
         * Pulls a Chunk out of this objects root Node tree.
         * @param chunk
-        * @return
         * @throws ChunkNotFoundException
         */
        public Chunk getDocumentNode(Chunk chunk) throws ChunkNotFoundException {
index 9681741d94256ad2ffd9bec1344a6a89c83e6fcc..af9f5e8fb0e67572af56dbf400da5508fde9c9a1 100644 (file)
@@ -72,7 +72,7 @@ public class PicturesTable
 
   /**
    *
-   * @param document 
+   * @param _document 
    * @param _dataStream
    */
   public PicturesTable(HWPFDocument _document, byte[] _dataStream, byte[] _mainStream, FSPATable fspa, EscherRecordHolder dgg)
index bf2cf3014a95d192c5c5692e1ddde82bddc487bb..57cd9099ee460c665cc8543d35c59d5f5ecfd4aa 100644 (file)
@@ -105,7 +105,6 @@ public class TextPiece extends PropertyNode implements Comparable
     * Works only in characters, not in bytes!
     * @param start Local start position, in characters
     * @param end Local end position, in characters
-    * @return
     */
    public String substring(int start, int end)
    {
index 129603463282c536e727bc8961b7defcf0144812..f13e6ecd177c9ebdb25fd8089bb148c274b07501 100644 (file)
@@ -157,7 +157,7 @@ public class TextPieceTable
    * In a very evil fashion, you have to actually 
    *  know this to make sense of character and
    *  paragraph properties :(
-   * @param cp The character offset to check about
+   * @param bytePos The character offset to check about
    */
   public boolean isUnicodeAtByteOffset(int bytePos) {
          boolean lastWas = false;
index 574c065ec3693ede2e9bbc72bee729dd72e92000..e8f231b6c1be6a6ba6b8eceb1c0831734095757d 100644 (file)
@@ -89,7 +89,6 @@ public class HeaderStories {
         * Returns the correct, defined header for the given
         *  one based page
         * @param pageNumber The one based page number
-        * @return
         */
        public String getHeader(int pageNumber) {
                // First page header is optional, only return
@@ -124,7 +123,6 @@ public class HeaderStories {
         * Returns the correct, defined footer for the given
         *  one based page
         * @param pageNumber The one based page number
-        * @return
         */
        public String getFooter(int pageNumber) {
                // First page footer is optional, only return
index 935cf24f824577e522a76a15c457ab732ecce691..828a872380fbcae1c76bc9b2472a84403beea34c 100644 (file)
@@ -81,7 +81,7 @@ public final class TestHSSFFormulaEvaluator extends TestCase {
        }
 
        /**
-        * {@link HSSFFormulaEvaluator#evaluate(HSSFCell)} should behave the same whether the cell
+        * {@link HSSFFormulaEvaluator#evaluate(org.apache.poi.ss.usermodel.Cell)} should behave the same whether the cell
         * is <code>null</code> or blank.
         */
        public void testEvaluateBlank() {
index d5e75dd2abf7df8a411012db8798a6024521b968..a9a259175b693ebbb3f9895c2b9f110b8650aa6d 100644 (file)
@@ -23,7 +23,7 @@ import org.apache.poi.hssf.record.formula.eval.NumberEval;
 import org.apache.poi.hssf.record.formula.eval.ValueEval;
 
 /**
- * Tests {@link CellCacheEntry}.
+ * Tests {@link org.apache.poi.ss.formula.CellCacheEntry}.
  *
  * @author Josh Micich
  */
index d42bfacd2dbe88c8919936bf11d4913e60f31b14..311367b0a74c83400bc999172c34069db5fa22a8 100644 (file)
@@ -47,7 +47,7 @@ import org.apache.poi.ss.formula.PlainCellCache.Loc;
 import org.apache.poi.ss.usermodel.CellValue;
 
 /**
- * Tests {@link EvaluationCache}.  Makes sure that where possible (previously calculated) cached 
+ * Tests {@link org.apache.poi.ss.formula.EvaluationCache}.  Makes sure that where possible (previously calculated) cached 
  * values are used.  Also checks that changing cell values causes the correct (minimal) set of
  * dependent cached values to be cleared.
  *