Changeset 34151 in osm for applications/editors/josm
- Timestamp:
- 2018-04-08T15:09:55+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/opendata
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/.settings/org.eclipse.jdt.core.prefs
r33518 r34151 17 17 org.eclipse.jdt.core.compiler.debug.localVariable=generate 18 18 org.eclipse.jdt.core.compiler.debug.sourceFile=generate 19 org.eclipse.jdt.core.compiler.doc.comment.support=enabled 19 20 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning 20 21 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error … … 40 41 org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore 41 42 org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore 43 org.eclipse.jdt.core.compiler.problem.invalidJavadoc=warning 44 org.eclipse.jdt.core.compiler.problem.invalidJavadocTags=enabled 45 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsDeprecatedRef=enabled 46 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsNotVisibleRef=enabled 47 org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=public 42 48 org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore 43 49 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning … … 46 52 org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled 47 53 org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore 54 org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore 55 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabled 56 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public 57 org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag 58 org.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignore 59 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabled 60 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disabled 61 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=public 48 62 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore 49 63 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hpsf/MutableSection.java
r30737 r34151 105 105 * @param formatID The section's format ID 106 106 * 107 * @see #setFormatID(byte[])108 107 * @see Section#getFormatID 109 108 */ … … 142 141 * @param value The property's value. 143 142 * 144 * @see #setProperty(int, String)145 143 * @see #getProperty 146 144 * @see Variant -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hpsf/NoFormatIDException.java
r28000 r34151 21 21 * <p>This exception is thrown if a {@link MutablePropertySet} is to be written 22 22 * but does not have a formatID set (see {@link 23 * MutableSection#setFormatID(ClassID)} or 24 * {@link org.apache.poi.hpsf.MutableSection#setFormatID(byte[])}. 23 * MutableSection#setFormatID(ClassID)}. 25 24 * 26 25 * @author Rainer Klute <a 27 26 * href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a> 28 27 */ 29 @SuppressWarnings("serial")30 28 public class NoFormatIDException extends HPSFRuntimeException 31 29 { -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hpsf/PropertySet.java
r30737 r34151 38 38 * 39 39 * <p>{@link PropertySetFactory#create} does its work by calling one 40 * of the constructor s {@link PropertySet#PropertySet(InputStream)} or41 * {@link PropertySet#PropertySet(byte[])}.If the constructor's40 * of the constructor {@link PropertySet#PropertySet(InputStream)}. 41 * If the constructor's 42 42 * argument is not in the Horrible Property Set Format, i.e. not a 43 43 * property set stream, or if any other error occurs, an appropriate … … 111 111 112 112 113 113 114 114 /** 115 115 * <p>Specifies the version of the operating system that created … … 352 352 { 353 353 /* FIXME (3): Ensure that at most "length" bytes are read. */ 354 354 355 355 /* 356 356 * Read the stream's header fields. … … 552 552 * 553 553 * @param o the object to compare this <code>PropertySet</code> with 554 * 554 * 555 555 * @return <code>true</code> if the objects are equal, <code>false</code> 556 556 * if not 557 557 */ 558 @Override 558 559 public boolean equals(final Object o) 559 560 { … … 587 588 * @see Object#hashCode() 588 589 */ 590 @Override 589 591 public int hashCode() 590 592 { … … 597 599 * @see Object#toString() 598 600 */ 601 @Override 599 602 public String toString() 600 603 { -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hpsf/Section.java
r30737 r34151 341 341 * <p>Returns the value of the property with the specified ID. If 342 342 * the property is not available, <code>null</code> is returned 343 * and a subsequent call to {@ link#wasNull} will return343 * and a subsequent call to {@code #wasNull} will return 344 344 * <code>true</code>.</p> 345 345 * … … 422 422 * was available or not. This information might be important for 423 423 * callers of {@link #getPropertyIntValue} since the latter 424 * returns 0 if the property does not exist. Using {@ link424 * returns 0 if the property does not exist. Using {@code 425 425 * #wasNull} the caller can distiguish this case from a property's 426 426 * real value of 0.</p> -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hpsf/SpecialPropertySet.java
r28000 r34151 85 85 * @see PropertySet#getByteOrder 86 86 */ 87 @Override 87 88 public int getByteOrder() 88 89 { … … 95 96 * @see PropertySet#getFormat 96 97 */ 98 @Override 97 99 public int getFormat() 98 100 { … … 105 107 * @see PropertySet#getOSVersion 106 108 */ 109 @Override 107 110 public int getOSVersion() 108 111 { … … 115 118 * @see PropertySet#getClassID 116 119 */ 120 @Override 117 121 public ClassID getClassID() 118 122 { … … 125 129 * @see PropertySet#getSectionCount 126 130 */ 131 @Override 127 132 public int getSectionCount() 128 133 { … … 135 140 * @see PropertySet#getSections 136 141 */ 142 @Override 137 143 public List<Section> getSections() 138 144 { … … 145 151 * @see PropertySet#isSummaryInformation 146 152 */ 153 @Override 147 154 public boolean isSummaryInformation() 148 155 { … … 155 162 * @see PropertySet#isDocumentSummaryInformation 156 163 */ 164 @Override 157 165 public boolean isDocumentSummaryInformation() 158 166 { … … 163 171 164 172 /** 165 * @see PropertySet#getSingleSection 166 */ 173 * @see PropertySet 174 */ 175 @Override 167 176 public Section getFirstSection() 168 177 { … … 174 183 * @see org.apache.poi.hpsf.MutablePropertySet#addSection(org.apache.poi.hpsf.Section) 175 184 */ 185 @Override 176 186 public void addSection(final Section section) 177 187 { … … 184 194 * @see org.apache.poi.hpsf.MutablePropertySet#clearSections() 185 195 */ 196 @Override 186 197 public void clearSections() 187 198 { … … 194 205 * @see org.apache.poi.hpsf.MutablePropertySet#setByteOrder(int) 195 206 */ 207 @Override 196 208 public void setByteOrder(final int byteOrder) 197 209 { … … 204 216 * @see org.apache.poi.hpsf.MutablePropertySet#setClassID(org.apache.poi.hpsf.ClassID) 205 217 */ 218 @Override 206 219 public void setClassID(final ClassID classID) 207 220 { … … 214 227 * @see org.apache.poi.hpsf.MutablePropertySet#setFormat(int) 215 228 */ 229 @Override 216 230 public void setFormat(final int format) 217 231 { … … 224 238 * @see org.apache.poi.hpsf.MutablePropertySet#setOSVersion(int) 225 239 */ 240 @Override 226 241 public void setOSVersion(final int osVersion) 227 242 { … … 234 249 * @see org.apache.poi.hpsf.MutablePropertySet#toInputStream() 235 250 */ 251 @Override 236 252 public InputStream toInputStream() throws IOException, WritingNotSupportedException 237 253 { … … 244 260 * @see org.apache.poi.hpsf.MutablePropertySet#write(org.apache.poi.poifs.filesystem.DirectoryEntry, java.lang.String) 245 261 */ 262 @Override 246 263 public void write(final DirectoryEntry dir, final String name) throws WritingNotSupportedException, IOException 247 264 { … … 254 271 * @see org.apache.poi.hpsf.MutablePropertySet#write(java.io.OutputStream) 255 272 */ 273 @Override 256 274 public void write(final OutputStream out) throws WritingNotSupportedException, IOException 257 275 { … … 264 282 * @see org.apache.poi.hpsf.PropertySet#equals(java.lang.Object) 265 283 */ 284 @Override 266 285 public boolean equals(final Object o) 267 286 { … … 274 293 * @see org.apache.poi.hpsf.PropertySet#getProperties() 275 294 */ 295 @Override 276 296 public Property[] getProperties() throws NoSingleSectionException 277 297 { … … 284 304 * @see org.apache.poi.hpsf.PropertySet#getProperty(int) 285 305 */ 306 @Override 286 307 protected Object getProperty(final int id) throws NoSingleSectionException 287 308 { … … 294 315 * @see org.apache.poi.hpsf.PropertySet#getPropertyBooleanValue(int) 295 316 */ 317 @Override 296 318 protected boolean getPropertyBooleanValue(final int id) throws NoSingleSectionException 297 319 { … … 304 326 * @see org.apache.poi.hpsf.PropertySet#getPropertyIntValue(int) 305 327 */ 328 @Override 306 329 protected int getPropertyIntValue(final int id) throws NoSingleSectionException 307 330 { … … 314 337 * @see org.apache.poi.hpsf.PropertySet#hashCode() 315 338 */ 339 @Override 316 340 public int hashCode() 317 341 { … … 324 348 * @see org.apache.poi.hpsf.PropertySet#toString() 325 349 */ 350 @Override 326 351 public String toString() 327 352 { … … 334 359 * @see org.apache.poi.hpsf.PropertySet#wasNull() 335 360 */ 361 @Override 336 362 public boolean wasNull() throws NoSingleSectionException 337 363 { -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/model/HSSFFormulaParser.java
r28000 r34151 24 24 25 25 /** 26 * HSSF wrapper for the {@link Formula Parser} and {@link FormulaRenderer}26 * HSSF wrapper for the {@link FormulaRenderer} 27 27 * 28 28 * @author Josh Micich -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/model/InternalWorkbook.java
r30737 r34151 315 315 * use this function to add a Shared String Table to an existing sheet (say 316 316 * generated by a different java api) without an sst.... 317 * @see #createExtendedSST()318 317 * @see org.apache.poi.hssf.record.SSTRecord 319 318 */ -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/BOFRecord.java
r28000 r34151 55 55 public BOFRecord() { 56 56 } 57 57 58 58 public BOFRecord(RecordInputStream in) { // NO_UCD 59 59 field_1_version = in.readShort(); … … 78 78 /** 79 79 * Version number - for BIFF8 should be 0x06 80 * @see #VERSION81 80 * @param version version to be set 82 81 */ … … 101 100 /** 102 101 * build that wrote this file 103 * @see #BUILD104 102 * @param build build number to set 105 103 */ … … 110 108 /** 111 109 * Year of the build that wrote this file 112 * @see #BUILD_YEAR113 110 * @param year build year to set 114 111 */ … … 119 116 /** 120 117 * set the history bit mask (not very useful) 121 * @see #HISTORY_MASK122 118 * @param bitmask bitmask to set for the history 123 119 */ … … 129 125 * set the minimum version required to read this file 130 126 * 131 * @see #VERSION132 127 * @param version version to set 133 128 */ … … 138 133 /** 139 134 * Version number - for BIFF8 should be 0x06 140 * @see #VERSION141 135 * @return version number of the generator of this file 142 136 */ … … 161 155 /** 162 156 * get the build that wrote this file 163 * @see #BUILD164 157 * @return short build number of the generator of this file 165 158 */ … … 170 163 /** 171 164 * Year of the build that wrote this file 172 * @see #BUILD_YEAR173 165 * @return short build year of the generator of this file 174 166 */ … … 179 171 /** 180 172 * get the history bit mask (not very useful) 181 * @see #HISTORY_MASK182 173 * @return int bitmask showing the history of the file (who cares!) 183 174 */ … … 189 180 * get the minimum version required to read this file 190 181 * 191 * @see #VERSION192 182 * @return int least version that can read the file 193 183 */ … … 196 186 } 197 187 188 @Override 198 189 public String toString() { 199 190 StringBuffer buffer = new StringBuffer(); … … 223 214 } 224 215 216 @Override 225 217 public void serialize(LittleEndianOutput out) { 226 218 out.writeShort(getVersion()); … … 232 224 } 233 225 226 @Override 234 227 protected int getDataSize() { 235 228 return 16; 236 229 } 237 230 231 @Override 238 232 public short getSid(){ 239 233 return sid; 240 234 } 241 235 236 @Override 242 237 public Object clone() { 243 238 BOFRecord rec = new BOFRecord(); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/CalcModeRecord.java
r28000 r34151 16 16 limitations under the License. 17 17 ==================================================================== */ 18 18 19 19 20 20 package org.apache.poi.hssf.record; … … 53 53 * set the calc mode flag for formulas 54 54 * 55 * @see #MANUAL56 * @see #AUTOMATIC57 * @see #AUTOMATIC_EXCEPT_TABLES58 *59 55 * @param calcmode one of the three flags above 60 56 */ … … 68 64 * get the calc mode flag for formulas 69 65 * 70 * @see #MANUAL71 * @see #AUTOMATIC72 * @see #AUTOMATIC_EXCEPT_TABLES73 *74 66 * @return calcmode one of the three flags above 75 67 */ … … 80 72 } 81 73 74 @Override 82 75 public String toString() 83 76 { … … 91 84 } 92 85 86 @Override 93 87 public void serialize(LittleEndianOutput out) { 94 88 out.writeShort(getCalcMode()); 95 89 } 96 90 91 @Override 97 92 protected int getDataSize() { 98 93 return 2; 99 94 } 100 95 96 @Override 101 97 public short getSid() 102 98 { … … 104 100 } 105 101 102 @Override 106 103 public Object clone() { 107 104 CalcModeRecord rec = new CalcModeRecord(); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/DVRecord.java
r28000 r34151 37 37 public final class DVRecord extends StandardRecord { 38 38 public final static short sid = 0x01BE; 39 39 40 40 /** Option flags */ 41 41 private int _option_flags; … … 61 61 /** 62 62 * Option flags field 63 *64 * @see HSSFDataValidation utility class65 63 */ 66 64 … … 92 90 } 93 91 94 public String toString() { 92 @Override 93 public String toString() { 95 94 StringBuffer sb = new StringBuffer(); 96 95 sb.append("[DV]\n"); … … 129 128 private static void appendFormula(StringBuffer sb, String label, Formula f) { 130 129 sb.append(label); 131 130 132 131 if (f == null) { 133 132 sb.append("<empty>\n"); … … 141 140 } 142 141 143 public void serialize(LittleEndianOutput out) { 142 @Override 143 public void serialize(LittleEndianOutput out) { 144 144 145 145 out.writeInt(_option_flags); 146 146 147 147 serializeUnicodeString(_promptTitle, out); 148 148 serializeUnicodeString(_errorTitle, out); … … 152 152 out.writeShort(_not_used_1); 153 153 _formula1.serializeTokens(out); 154 154 155 155 out.writeShort(_formula2.getEncodedTokenSize()); 156 156 out.writeShort(_not_used_2); 157 157 _formula2.serializeTokens(out); 158 158 159 159 _regions.serialize(out); 160 160 } … … 172 172 } 173 173 174 protected int getDataSize() { 174 @Override 175 protected int getDataSize() { 175 176 int size = 4+2+2+2+2;//options_field+first_formula_size+first_unused+sec_formula_size+sec+unused; 176 177 size += getUnicodeStringSize(_promptTitle); … … 184 185 } 185 186 186 public short getSid() { 187 @Override 188 public short getSid() { 187 189 return sid; 188 190 } 189 191 190 192 /** 191 193 * Clones the object. Uses serialisation, as the 192 194 * contents are somewhat complex 193 195 */ 194 public Object clone() { 196 @Override 197 public Object clone() { 195 198 return cloneViaReserialise(); 196 199 } -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/ExtendedFormatRecord.java
r28000 r34151 16 16 limitations under the License. 17 17 ==================================================================== */ 18 18 19 19 20 20 package org.apache.poi.hssf.record; … … 161 161 * 162 162 * @return index to the font 163 * @see org.apache.poi.hssf.record.FontRecord164 163 */ 165 164 … … 245 244 * 246 245 * @return index of parent XF 247 * @see #NULL248 246 * @see #getCellOptions() 249 247 */ … … 276 274 * 277 275 * @return align - how to align the cell (see constants) 278 * @see #GENERAL279 * @see #LEFT280 * @see #CENTER281 * @see #RIGHT282 * @see #FILL283 * @see #JUSTIFY284 * @see #CENTER_SELECTION285 276 * @see #getAlignmentOptions() 286 277 */ … … 309 300 * 310 301 * @return where to align the text 311 * @see #VERTICAL_TOP312 * @see #VERTICAL_CENTER313 * @see #VERTICAL_BOTTOM314 * @see #VERTICAL_JUSTIFY315 302 * 316 303 * @see #getAlignmentOptions() … … 526 513 * 527 514 * @return border - type of border for the left side of the cell 528 * @see #NONE529 * @see #THIN530 * @see #MEDIUM531 * @see #DASHED532 * @see #DOTTED533 * @see #THICK534 * @see #DOUBLE535 * @see #HAIR536 * @see #MEDIUM_DASHED537 * @see #DASH_DOT538 * @see #MEDIUM_DASH_DOT539 * @see #DASH_DOT_DOT540 * @see #MEDIUM_DASH_DOT_DOT541 * @see #SLANTED_DASH_DOT542 515 * @see #getBorderOptions() 543 516 */ … … 553 526 * 554 527 * @return border - type of border for the right side of the cell 555 * @see #NONE556 * @see #THIN557 * @see #MEDIUM558 * @see #DASHED559 * @see #DOTTED560 * @see #THICK561 * @see #DOUBLE562 * @see #HAIR563 * @see #MEDIUM_DASHED564 * @see #DASH_DOT565 * @see #MEDIUM_DASH_DOT566 * @see #DASH_DOT_DOT567 * @see #MEDIUM_DASH_DOT_DOT568 * @see #SLANTED_DASH_DOT569 528 * @see #getBorderOptions() 570 529 */ … … 580 539 * 581 540 * @return border - type of border for the top of the cell 582 * @see #NONE583 * @see #THIN584 * @see #MEDIUM585 * @see #DASHED586 * @see #DOTTED587 * @see #THICK588 * @see #DOUBLE589 * @see #HAIR590 * @see #MEDIUM_DASHED591 * @see #DASH_DOT592 * @see #MEDIUM_DASH_DOT593 * @see #DASH_DOT_DOT594 * @see #MEDIUM_DASH_DOT_DOT595 * @see #SLANTED_DASH_DOT596 541 * @see #getBorderOptions() 597 542 */ … … 607 552 * 608 553 * @return border - type of border for the bottom of the cell 609 * @see #NONE610 * @see #THIN611 * @see #MEDIUM612 * @see #DASHED613 * @see #DOTTED614 * @see #THICK615 * @see #DOUBLE616 * @see #HAIR617 * @see #MEDIUM_DASHED618 * @see #DASH_DOT619 * @see #MEDIUM_DASH_DOT620 * @see #DASH_DOT_DOT621 * @see #MEDIUM_DASH_DOT_DOT622 * @see #SLANTED_DASH_DOT623 554 * @see #getBorderOptions() 624 555 */ … … 757 688 * 758 689 * @return diag - the line style 759 * @see #NONE760 * @see #THIN761 * @see #MEDIUM762 * @see #DASHED763 * @see #DOTTED764 * @see #THICK765 * @see #DOUBLE766 * @see #HAIR767 * @see #MEDIUM_DASHED768 * @see #DASH_DOT769 * @see #MEDIUM_DASH_DOT770 * @see #DASH_DOT_DOT771 * @see #MEDIUM_DASH_DOT_DOT772 * @see #SLANTED_DASH_DOT773 690 * @see #getAdtlPaletteOptions() 774 691 */ … … 783 700 * get the additional fill pattern 784 701 * 785 * @see #NO_FILL786 * @see #SOLID_FILL787 * @see #FINE_DOTS788 * @see #ALT_BARS789 * @see #SPARSE_DOTS790 * @see #THICK_HORZ_BANDS791 * @see #THICK_VERT_BANDS792 * @see #THICK_BACKWARD_DIAG793 * @see #THICK_FORWARD_DIAG794 * @see #BIG_SPOTS795 * @see #BRICKS796 * @see #THIN_HORZ_BANDS797 * @see #THIN_VERT_BANDS798 * @see #THIN_BACKWARD_DIAG799 * @see #THIN_FORWARD_DIAG800 * @see #SQUARES801 * @see #DIAMONDS802 *803 702 * @return fill - fill pattern?? 804 703 * @see #getAdtlPaletteOptions() … … 854 753 } 855 754 755 @Override 856 756 public String toString() 857 757 { … … 961 861 } 962 862 863 @Override 963 864 public void serialize(LittleEndianOutput out) { 964 865 out.writeShort(getFontIndex()); … … 973 874 } 974 875 876 @Override 975 877 protected int getDataSize() { 976 878 return 20; 977 879 } 978 880 881 @Override 979 882 public short getSid() 980 883 { 981 884 return sid; 982 885 } 983 984 985 public int hashCode() { 886 887 888 @Override 889 public int hashCode() { 986 890 final int prime = 31; 987 891 int result = 1; … … 1003 907 * that matter are embedded in the records 1004 908 */ 1005 public boolean equals(Object obj) { 909 @Override 910 public boolean equals(Object obj) { 1006 911 if (this == obj) 1007 912 return true; … … 1032 937 return false; 1033 938 } 1034 1035 939 940 1036 941 } -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/LabelRecord.java
r28000 r34151 68 68 * READ ONLY ACCESS... THIS IS FOR COMPATIBILITY ONLY...USE LABELSST! public 69 69 */ 70 @Override 70 71 public int getRow() 71 72 { … … 73 74 } 74 75 76 @Override 75 77 public short getColumn() 76 78 { … … 78 80 } 79 81 82 @Override 80 83 public short getXFIndex() 81 84 { … … 96 99 * 97 100 * @return the text string 98 * @see #getStringLength()99 101 */ 100 102 public String getValue() … … 106 108 * THROWS A RUNTIME EXCEPTION.. USE LABELSSTRecords. YOU HAVE NO REASON to use LABELRecord!! 107 109 */ 110 @Override 108 111 public int serialize(int offset, byte [] data) { 109 112 throw new RecordFormatException("Label Records are supported READ ONLY...convert to LabelSST"); 110 113 } 114 @Override 111 115 public int getRecordSize() { 112 116 throw new RecordFormatException("Label Records are supported READ ONLY...convert to LabelSST"); 113 117 } 114 118 119 @Override 115 120 public short getSid() 116 121 { … … 118 123 } 119 124 125 @Override 120 126 public String toString() 121 127 { … … 135 141 * NO-OP! 136 142 */ 143 @Override 137 144 public void setColumn(short col) 138 145 { … … 142 149 * NO-OP! 143 150 */ 151 @Override 144 152 public void setRow(int row) 145 153 { … … 149 157 * no op! 150 158 */ 159 @Override 151 160 public void setXFIndex(short xf) 152 161 { 153 162 } 154 163 164 @Override 155 165 public Object clone() { 156 166 LabelRecord rec = new LabelRecord(); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/LbsDataSubRecord.java
r28000 r34151 92 92 * @param in the stream to read data from 93 93 * @param cbFContinued the seconf short in the record header 94 * @param cmoOt the containing Obj's {@ linkCommonObjectDataSubRecord#field_1_objectType}94 * @param cmoOt the containing Obj's {@code CommonObjectDataSubRecord#field_1_objectType} 95 95 */ 96 96 public LbsDataSubRecord(LittleEndianInput in, int cbFContinued, int cmoOt) { … … 267 267 268 268 /** 269 * An unsigned integer that specifies the style of this dropdown. 269 * An unsigned integer that specifies the style of this dropdown. 270 270 */ 271 271 private int _wStyle; -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/RecordFactory.java
r30737 r34151 34 34 * Description: Takes a stream and outputs an array of Record objects.<P> 35 35 * 36 * @see org.apache.poi.hssf.eventmodel.EventRecordFactory37 36 * @author Andrew C. Oliver (acoliver at apache dot org) 38 37 * @author Marc Johnson (mjohnson at apache dot org) … … 54 53 _c = c; 55 54 } 56 public Record create(RecordInputStream in) { 55 @Override 56 public Record create(RecordInputStream in) { 57 57 Object[] args = { in, }; 58 58 try { … … 68 68 } 69 69 } 70 public Class<? extends Record> getRecordClass() { 70 @Override 71 public Class<? extends Record> getRecordClass() { 71 72 return _c.getDeclaringClass(); 72 73 } … … 82 83 _m = m; 83 84 } 84 public Record create(RecordInputStream in) { 85 @Override 86 public Record create(RecordInputStream in) { 85 87 Object[] args = { in, }; 86 88 try { … … 94 96 } 95 97 } 96 @SuppressWarnings("unchecked") 98 @Override 99 @SuppressWarnings("unchecked") 97 100 public Class<? extends Record> getRecordClass() { 98 101 return (Class<? extends Record>) _m.getDeclaringClass(); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/RecordFactoryInputStream.java
r30737 r34151 27 27 * the data into full records, processing continue records 28 28 * etc. 29 * Most users should use {@link HSSFEventFactory} /30 * {@link HSSFListener} and have new records pushed to31 * them, but this does allow for a "pull" style of coding.32 29 */ 33 30 public final class RecordFactoryInputStream { -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/RecordInputStream.java
r28000 r34151 42 42 43 43 /** 44 * For use in {@ linkBiffViewer} which may construct {@link Record}s that don't completely44 * For use in {@code BiffViewer} which may construct {@link Record}s that don't completely 45 45 * read all available data. This exception should never be thrown otherwise. 46 46 */ 47 @SuppressWarnings("serial")48 47 public static final class LeftoverDataException extends RuntimeException { 49 48 public LeftoverDataException(int sid, int remainingByteCount) { … … 85 84 _lei = getLEI(in); 86 85 } 87 public int available() { 86 @Override 87 public int available() { 88 88 return _lei.available(); 89 89 } 90 public int readDataSize() { 90 @Override 91 public int readDataSize() { 91 92 return _lei.readUShort(); 92 93 } 93 public int readRecordSID() { 94 @Override 95 public int readRecordSID() { 94 96 return _lei.readUShort(); 95 97 } … … 119 121 * @see #remaining() 120 122 */ 121 public int available() { 123 @Override 124 public int available() { 122 125 return remaining(); 123 126 } … … 211 214 * Reads an 8 bit, signed value 212 215 */ 213 public byte readByte() { 216 @Override 217 public byte readByte() { 214 218 checkRecordPosition(LittleEndian.BYTE_SIZE); 215 219 _currentDataOffset += LittleEndian.BYTE_SIZE; … … 220 224 * Reads a 16 bit, signed value 221 225 */ 222 public short readShort() { 226 @Override 227 public short readShort() { 223 228 checkRecordPosition(LittleEndian.SHORT_SIZE); 224 229 _currentDataOffset += LittleEndian.SHORT_SIZE; … … 227 232 228 233 /** 229 * Reads a 32 bit, signed value 230 */ 231 public int readInt() { 234 * Reads a 32 bit, signed value 235 */ 236 @Override 237 public int readInt() { 232 238 checkRecordPosition(LittleEndian.INT_SIZE); 233 239 _currentDataOffset += LittleEndian.INT_SIZE; … … 238 244 * Reads a 64 bit, signed value 239 245 */ 240 public long readLong() { 246 @Override 247 public long readLong() { 241 248 checkRecordPosition(LittleEndian.LONG_SIZE); 242 249 _currentDataOffset += LittleEndian.LONG_SIZE; … … 247 254 * Reads an 8 bit, unsigned value 248 255 */ 249 public int readUByte() { 256 @Override 257 public int readUByte() { 250 258 return readByte() & 0x00FF; 251 259 } … … 254 262 * Reads a 16 bit, unsigned value. 255 263 */ 256 public int readUShort() { 264 @Override 265 public int readUShort() { 257 266 checkRecordPosition(LittleEndian.SHORT_SIZE); 258 267 _currentDataOffset += LittleEndian.SHORT_SIZE; … … 260 269 } 261 270 262 public double readDouble() { 271 @Override 272 public double readDouble() { 263 273 long valueLongBits = readLong(); 264 274 double result = Double.longBitsToDouble(valueLongBits); … … 268 278 return result; 269 279 } 270 public void readFully(byte[] buf) { 280 @Override 281 public void readFully(byte[] buf) { 271 282 readFully(buf, 0, buf.length); 272 283 } 273 284 274 public void readFully(byte[] buf, int off, int len) { 285 @Override 286 public void readFully(byte[] buf, int off, int len) { 275 287 checkRecordPosition(len); 276 288 _dataInput.readFully(buf, off, len); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/RefModeRecord.java
r28000 r34151 16 16 limitations under the License. 17 17 ==================================================================== */ 18 18 19 19 20 20 package org.apache.poi.hssf.record; … … 51 51 * @param mode the mode to use 52 52 * @see #USE_A1_MODE 53 * @see #USE_R1C1_MODE54 53 * 55 54 */ … … 64 63 * @return mode to use 65 64 * @see #USE_A1_MODE 66 * @see #USE_R1C1_MODE67 65 */ 68 66 … … 72 70 } 73 71 72 @Override 74 73 public String toString() 75 74 { … … 83 82 } 84 83 84 @Override 85 85 public void serialize(LittleEndianOutput out) { 86 86 out.writeShort(getMode()); 87 87 } 88 88 89 @Override 89 90 protected int getDataSize() { 90 91 return 2; 91 92 } 92 93 94 @Override 93 95 public short getSid() 94 96 { … … 96 98 } 97 99 100 @Override 98 101 public Object clone() { 99 102 RefModeRecord rec = new RefModeRecord(); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/cont/UnknownLengthRecordOutput.java
r28000 r34151 24 24 /** 25 25 * Allows the writing of BIFF records when the 'ushort size' header field is not known in advance. 26 * When the client is finished writing data, it calls {@ link #terminate()}, at which point this26 * When the client is finished writing data, it calls {@code terminate()}, at which point this 27 27 * class updates the 'ushort size' with its final value. 28 28 * … … 69 69 /** 70 70 * Finishes writing the current record and updates 'ushort size' field.<br/> 71 * After this method is called, only {@ link #getTotalSize()} may be called.71 * After this method is called, only {@code getTotalSize()} may be called. 72 72 */ 73 73 public void terminate() { … … 84 84 } 85 85 86 public void write(byte[] b) { 86 @Override 87 public void write(byte[] b) { 87 88 _out.write(b); 88 89 _size += b.length; 89 90 } 90 public void write(byte[] b, int offset, int len) { 91 @Override 92 public void write(byte[] b, int offset, int len) { 91 93 _out.write(b, offset, len); 92 94 _size += len; 93 95 } 94 public void writeByte(int v) { 96 @Override 97 public void writeByte(int v) { 95 98 _out.writeByte(v); 96 99 _size += 1; 97 100 } 98 public void writeDouble(double v) { 101 @Override 102 public void writeDouble(double v) { 99 103 _out.writeDouble(v); 100 104 _size += 8; 101 105 } 102 public void writeInt(int v) { 106 @Override 107 public void writeInt(int v) { 103 108 _out.writeInt(v); 104 109 _size += 4; 105 110 } 106 public void writeLong(long v) { 111 @Override 112 public void writeLong(long v) { 107 113 _out.writeLong(v); 108 114 _size += 8; 109 115 } 110 public void writeShort(int v) { 116 @Override 117 public void writeShort(int v) { 111 118 _out.writeShort(v); 112 119 _size += 2; -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/formula/SheetNameFormatter.java
r28000 r34151 26 26 /** 27 27 * Formats sheet names for use in formula expressions. 28 * 28 * 29 29 * @author Josh Micich 30 30 */ 31 31 public final class SheetNameFormatter { 32 32 33 33 private static final char DELIMITER = '\''; 34 34 35 35 /** 36 36 * Matches a single cell ref with no absolute ('$') markers … … 41 41 // no instances of this class 42 42 } 43 44 45 /** 46 * Convenience method for ({@ link#format(String)}) when a StringBuffer is already available.47 * 48 * @param out - sheet name will be appended here possibly with delimiting quotes 43 44 45 /** 46 * Convenience method for ({@code #format(String)}) when a StringBuffer is already available. 47 * 48 * @param out - sheet name will be appended here possibly with delimiting quotes 49 49 */ 50 50 public static void appendFormat(StringBuffer out, String rawSheetName) { … … 104 104 if(Character.isLetter(rawSheetName.charAt(0)) 105 105 && Character.isDigit(rawSheetName.charAt(len-1))) { 106 // note - values like "A$1:$C$20" don't get this far 106 // note - values like "A$1:$C$20" don't get this far 107 107 if(nameLooksLikePlainCellReference(rawSheetName)) { 108 108 return true; … … 116 116 return false; 117 117 } 118 118 119 119 private static boolean nameLooksLikeBooleanLiteral(String rawSheetName) { 120 120 switch(rawSheetName.charAt(0)) { … … 127 127 } 128 128 /** 129 * @return <code>true</code> if the presence of the specified character in a sheet name would 130 * require the sheet name to be delimited in formulas. This includes every non-alphanumeric 129 * @return <code>true</code> if the presence of the specified character in a sheet name would 130 * require the sheet name to be delimited in formulas. This includes every non-alphanumeric 131 131 * character besides underscore '_' and dot '.'. 132 132 */ … … 143 143 case '\r': 144 144 case '\t': 145 throw new RuntimeException("Illegal character (0x" 145 throw new RuntimeException("Illegal character (0x" 146 146 + Integer.toHexString(ch) + ") found in sheet name"); 147 147 } 148 148 return true; 149 149 } 150 151 152 /** 153 * Used to decide whether sheet names like 'AB123' need delimiting due to the fact that they 150 151 152 /** 153 * Used to decide whether sheet names like 'AB123' need delimiting due to the fact that they 154 154 * look like cell references. 155 155 * <p/> 156 156 * This code is currently being used for translating formulas represented with <code>Ptg</code> 157 * tokens into human readable text form. In formula expressions, a sheet name always has a 158 * trailing '!' so there is little chance for ambiguity. It doesn't matter too much what this 157 * tokens into human readable text form. In formula expressions, a sheet name always has a 158 * trailing '!' so there is little chance for ambiguity. It doesn't matter too much what this 159 159 * method returns but it is worth noting the likely consumers of these formula text strings: 160 160 * <ol> … … 165 165 * <li>Some third party formula parser</li> 166 166 * </ol> 167 * 167 * 168 168 * At the time of writing, POI's formula parser tolerates cell-like sheet names in formulas 169 * with or without delimiters. The same goes for Excel(2007), both manual and automated entry. 169 * with or without delimiters. The same goes for Excel(2007), both manual and automated entry. 170 170 * <p/> 171 171 * For better or worse this implementation attempts to replicate Excel's formula renderer. … … 179 179 180 180 /** 181 * Note - this method assumes the specified rawSheetName has only letters and digits. It 181 * Note - this method assumes the specified rawSheetName has only letters and digits. It 182 182 * cannot be used to match absolute or range references (using the dollar or colon char). 183 183 * <p/> 184 184 * Some notable cases: 185 * <blockquote><table border="0" cellpadding="1" cellspacing="0" 185 * <blockquote><table border="0" cellpadding="1" cellspacing="0" 186 186 * summary="Notable cases."> 187 187 * <tr><th>Input </th><th>Result </th><th>Comments</th></tr> … … 196 196 * <td>Still needs delimiting even though well out of range</td></tr> 197 197 * </table></blockquote> 198 * 198 * 199 199 * @return <code>true</code> if there is any possible ambiguity that the specified rawSheetName 200 200 * could be interpreted as a valid cell name. … … 205 205 return false; 206 206 } 207 207 208 208 // rawSheetName == "Sheet1" gets this far. 209 209 String lettersPrefix = matcher.group(1); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFCell.java
r28000 r34151 78 78 * @return the HSSFSheet that owns this cell 79 79 */ 80 @Override 80 81 public HSSFSheet getSheet() { 81 82 return _sheet; … … 87 88 * @return the HSSFRow that owns this cell 88 89 */ 90 @Override 89 91 public HSSFRow getRow() { 90 92 int rowIndex = getRowIndex(); … … 179 181 * @return the (zero based) index of the row containing this cell 180 182 */ 183 @Override 181 184 public int getRowIndex() { 182 185 return _record.getRow(); 183 186 } 184 187 188 @Override 185 189 public int getColumnIndex() { 186 190 return _record.getColumn() & 0xFFFF; … … 196 200 * @see #CELL_TYPE_ERROR 197 201 */ 202 @Override 198 203 public void setCellType(int cellType) { 199 204 notifyFormulaChanging(); … … 365 370 */ 366 371 372 @Override 367 373 public int getCellType() 368 374 { … … 381 387 } 382 388 389 @Override 383 390 public String getCellFormula() { 384 391 if (!(_record instanceof FormulaRecordAggregate)) { … … 420 427 * For strings we throw an exception. 421 428 * For blank cells we return a 0. 422 * See {@link HSSFDataFormatter} for turning this423 429 * number into a string similar to that which 424 430 * Excel would render this number as. 425 431 */ 432 @Override 426 433 public double getNumericCellValue() { 427 434 … … 445 452 * For strings we throw an exception. 446 453 * For blank cells we return a null. 447 * See {@link HSSFDataFormatter} for formatting448 454 * this date into a string similar to how excel does. 449 455 */ 456 @Override 450 457 public Date getDateCellValue() { 451 458 … … 465 472 * For formulaCells that are not string Formulas, we throw an exception 466 473 */ 474 @Override 467 475 public String getStringCellValue() 468 476 { … … 476 484 * For formulaCells that are not string Formulas, we throw an exception 477 485 */ 486 @Override 478 487 public HSSFRichTextString getRichStringCellValue() { 479 488 … … 569 578 * For blank cells we return a false. 570 579 */ 580 @Override 571 581 public boolean getBooleanCellValue() { 572 582 … … 597 607 * get the style for the cell. This is a reference to a cell style contained in the workbook 598 608 * object. 599 * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getCellStyleAt(short) 600 */ 609 * @see org.apache.poi.hssf.usermodel.HSSFWorkbook 610 */ 611 @Override 601 612 public HSSFCellStyle getCellStyle() 602 613 { … … 641 652 * Errors are displayed as #ERR<errIdx> 642 653 */ 654 @Override 643 655 public String toString() { 644 656 switch (getCellType()) { … … 665 677 } 666 678 679 @Override 667 680 public CellRangeAddress getArrayFormulaRange() { 668 681 if (_cellType != CELL_TYPE_FORMULA) { … … 674 687 } 675 688 689 @Override 676 690 public boolean isPartOfArrayFormulaGroup() { 677 691 if (_cellType != CELL_TYPE_FORMULA) { -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
r28000 r34151 28 28 * @author Andrew C. Oliver (acoliver at apache dot org) 29 29 * @author Jason Height (jheight at chariot dot net dot au) 30 * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createCellStyle()31 * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getCellStyleAt(short)32 30 * @see org.apache.poi.hssf.usermodel.HSSFCell#setCellStyle(HSSFCellStyle) 33 31 */ … … 55 53 * unless you're comparing which one is which) 56 54 */ 55 @Override 57 56 public short getIndex() 58 57 { … … 65 64 */ 66 65 66 @Override 67 67 public short getDataFormat() 68 68 { … … 76 76 * @return the format string or "General" if not found 77 77 */ 78 @Override 78 79 public String getDataFormatString() { 79 80 return getDataFormatString(_workbook); … … 107 108 108 109 109 public int hashCode() { 110 @Override 111 public int hashCode() { 110 112 final int prime = 31; 111 113 int result = 1; … … 115 117 } 116 118 117 public boolean equals(Object obj) { 119 @Override 120 public boolean equals(Object obj) { 118 121 if (this == obj) return true; 119 122 if (obj == null) return false; -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFSheet.java
r30737 r34151 142 142 * @return High level HSSFRow object representing a row in the sheet 143 143 * @see org.apache.poi.hssf.usermodel.HSSFRow 144 * @see #removeRow(org.apache.poi.ss.usermodel.Row)145 */144 */ 145 @Override 146 146 public HSSFRow createRow(int rownum) 147 147 { … … 198 198 * @return HSSFRow representing the row number or null if its not defined on the sheet 199 199 */ 200 @Override 200 201 public HSSFRow getRow(int rowIndex) { 201 202 return _rows.get(Integer.valueOf(rowIndex)); … … 206 207 * @return the number of the first logical row on the sheet, zero based 207 208 */ 209 @Override 208 210 public int getFirstRowNum() { 209 211 return _firstrow; … … 217 219 * are zero rows on the sheet, or one at 218 220 * position zero. For that case, additionally 219 * call {@ link#getPhysicalNumberOfRows()} to221 * call {@code #getPhysicalNumberOfRows()} to 220 222 * tell if there is a row at position zero 221 223 * or not. 222 224 * @return the number of the last row contained in this sheet, zero based. 223 225 */ 226 @Override 224 227 public int getLastRowNum() { 225 228 return _lastrow; … … 231 234 * Call getRowNum() on each row if you care which one it is. 232 235 */ 236 @Override 233 237 public Iterator<Row> rowIterator() { 234 238 @SuppressWarnings("unchecked") // can this clumsy generic syntax be improved? … … 240 244 * foreach loops 241 245 */ 246 @Override 242 247 public Iterator<Row> iterator() { 243 248 return rowIterator(); … … 281 286 } 282 287 288 @Override 283 289 public CellRange<HSSFCell> removeArrayFormula(Cell cell) { 284 290 if (cell.getSheet() != this) { … … 300 306 return result; 301 307 } 302 308 303 309 304 310 } -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/poifs/storage/SmallDocumentBlock.java
r30737 r34151 53 53 _data = new byte[ _block_size ]; 54 54 } 55 55 56 56 private static int getBlocksPerBigBlock(final POIFSBigBlockSize bigBlockSize) 57 57 { … … 146 146 { 147 147 int _blocks_per_big_block = getBlocksPerBigBlock(bigBlockSize); 148 148 149 149 List<SmallDocumentBlock> sdbs = new ArrayList<>(); 150 150 … … 193 193 * stream 194 194 */ 195 @Override 195 196 public void writeBlocks(OutputStream stream) 196 197 throws IOException … … 203 204 * 204 205 * @return the block's data as a byte array 205 * 206 * @exception IOException if there is no data 207 */ 206 */ 207 @Override 208 208 public byte [] getData() { 209 209 return _data; -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/format/CellFormatter.java
r28000 r34151 35 35 36 36 /** 37 * Creates a new formatter object, storing the format in {@ link#format}.37 * Creates a new formatter object, storing the format in {@code #format}. 38 38 * 39 39 * @param format The format. -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/usermodel/Cell.java
r28000 r34151 150 150 * @throws IllegalStateException if the cell type returned by {@link #getCellType()} is CELL_TYPE_STRING 151 151 * @exception NumberFormatException if the cell value isn't a parsable <code>double</code>. 152 * @see DataFormatter for turning this number into a string similar to that which Excel would render this number as.153 152 */ 154 153 double getNumericCellValue(); … … 162 161 * @throws IllegalStateException if the cell type returned by {@link #getCellType()} is CELL_TYPE_STRING 163 162 * @exception NumberFormatException if the cell value isn't a parsable <code>double</code>. 164 * @see DataFormatter for formatting this date into a string similar to how excel does.165 163 */ 166 164 Date getDateCellValue(); … … 202 200 * @return the cell's style. Always not-null. Default cell style has zero index and can be obtained as 203 201 * <code>workbook.getCellStyleAt(0)</code> 204 * @see Workbook#getCellStyleAt(short)205 202 */ 206 203 CellStyle getCellStyle(); -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/usermodel/Sheet.java
r28000 r34151 36 36 * @param rownum row number 37 37 * @return high level Row object representing a row in the sheet 38 * @see #removeRow(Row)39 38 */ 40 39 Row createRow(int rownum); … … 80 79 */ 81 80 CellRange<? extends Cell> removeArrayFormula(Cell cell); 82 83 81 82 84 83 } -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/util/ExpandedDouble.java
r28000 r34151 27 27 * Does not handle negative numbers or zero 28 28 * <p/> 29 * The value of a {@ linkExpandedDouble} is given by<br/>29 * The value of a {@code ExpandedDouble} is given by<br/> 30 30 * <tt> a × 2<sup>b</sup></tt> 31 31 * <br/> … … 67 67 68 68 /** 69 * Convert to an equivalent {@ linkNormalisedDecimal} representation having 15 decimal digits of precision in the69 * Convert to an equivalent {@code NormalisedDecimal} representation having 15 decimal digits of precision in the 70 70 * non-fractional bits of the significand. 71 71 */ -
applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/util/NormalisedDecimal.java
r28000 r34151 34 34 * This class does not handle negative numbers or zero. 35 35 * <p/> 36 * The value of a {@ linkNormalisedDecimal} is given by<br/>36 * The value of a {@code NormalisedDecimal} is given by<br/> 37 37 * <tt> significand × 10<sup>decimalExponent</sup></tt> 38 38 * <br/> -
applications/editors/josm/plugins/opendata/includes/org/jopendocument/dom/ODPackage.java
r30568 r34151 1 1 /* 2 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 * 3 * 4 4 * Copyright 2008 jOpenDocument, by ILM Informatique. All rights reserved. 5 * 5 * 6 6 * The contents of this file are subject to the terms of the GNU 7 * General Public License Version 3 only ("GPL"). 8 * You may not use this file except in compliance with the License. 7 * General Public License Version 3 only ("GPL"). 8 * You may not use this file except in compliance with the License. 9 9 * You can obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.html 10 10 * See the License for the specific language governing permissions and limitations under the License. 11 * 11 * 12 12 * When distributing the software, include this License Header Notice in each file. 13 * 13 * 14 14 */ 15 15 … … 17 17 18 18 import java.io.File; 19 import java.io.IOException;20 19 import java.util.HashMap; 21 20 import java.util.HashSet; … … 24 23 25 24 import org.jdom.Document; 26 import org.jdom.JDOMException;27 25 import org.jopendocument.util.CopyUtils; 28 26 import org.jopendocument.util.FileUtils; … … 30 28 /** 31 29 * An OpenDocument package, ie a zip containing XML documents and their associated files. 32 * 30 * 33 31 * @author ILM Informatique 2 août 2004 34 32 */ … … 76 74 * The version of this package, <code>null</code> if it cannot be found (eg this package is 77 75 * empty, or contains no xml). 78 * 76 * 79 77 * @return the version of this package, can be <code>null</code>. 80 78 */ … … 130 128 } 131 129 132 /** 130 /** 133 131 * Return an XML document. 134 * 132 * 135 133 * @param xmlEntry the filename, eg "styles.xml". 136 134 * @return the matching document, or <code>null</code> if there's none. 137 * @throws JDOMException if error about the XML.138 * @throws IOException if an error occurs while reading the file.139 135 */ 140 136 public Document getDocument(String xmlEntry) { -
applications/editors/josm/plugins/opendata/includes/org/jopendocument/dom/spreadsheet/Cell.java
r30568 r34151 1 1 /* 2 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 * 3 * 4 4 * Copyright 2008 jOpenDocument, by ILM Informatique. All rights reserved. 5 * 5 * 6 6 * The contents of this file are subject to the terms of the GNU 7 * General Public License Version 3 only ("GPL"). 8 * You may not use this file except in compliance with the License. 7 * General Public License Version 3 only ("GPL"). 8 * You may not use this file except in compliance with the License. 9 9 * You can obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.html 10 10 * See the License for the specific language governing permissions and limitations under the License. 11 * 11 * 12 12 * When distributing the software, include this License Header Notice in each file. 13 * 13 * 14 14 */ 15 15 … … 35 35 /** 36 36 * A cell in a calc document. If you want to change a cell value you must obtain a MutableCell. 37 * 37 * 38 38 * @author Sylvain 39 39 * @param <D> type of document … … 44 44 private static final Pattern multiSpacePattern = Pattern.compile("[\t\r\n ]+"); 45 45 private static boolean OO_MODE = true; 46 47 /**48 * Set whether {@link #getTextValue()} parses strings using the standard way or using the49 * OpenOffice.org way.50 *51 * @param ooMode <code>true</code> if strings should be parsed the OO way.52 * @see #getTextValue(boolean)53 */54 /*public static void setTextValueMode(boolean ooMode) {55 OO_MODE = ooMode;56 }*/57 46 58 47 public static boolean getTextValueMode() { … … 118 107 /** 119 108 * Calls {@link #getTextValue(boolean)} using {@link #getTextValueMode()}. 120 * 109 * 121 110 * @return a string for the content of this cell. 122 111 */ … … 131 120 * OO way (as of 3.1) and the OpenDocument way see section 5.1.1 White-space Characters of 132 121 * OpenDocument-v1.0-os and OpenDocument-v1.2-part1. In essence OpenOffice never trim strings. 133 * 122 * 134 123 * @param ooMode whether to use the OO way or the standard way. 135 124 * @return a string for the content of this cell. -
applications/editors/josm/plugins/opendata/includes/org/jopendocument/util/CollectionUtils.java
r31942 r34151 1 1 /* 2 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 * 3 * 4 4 * Copyright 2008 jOpenDocument, by ILM Informatique. All rights reserved. 5 * 5 * 6 6 * The contents of this file are subject to the terms of the GNU 7 * General Public License Version 3 only ("GPL"). 8 * You may not use this file except in compliance with the License. 7 * General Public License Version 3 only ("GPL"). 8 * You may not use this file except in compliance with the License. 9 9 * You can obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.html 10 10 * See the License for the specific language governing permissions and limitations under the License. 11 * 11 * 12 12 * When distributing the software, include this License Header Notice in each file. 13 * 13 * 14 14 */ 15 15 … … 26 26 /** 27 27 * Une classe regroupant des méthodes utilitaires pour les collections. 28 * 28 * 29 29 * @author ILM Informatique 30 sept. 2004 30 30 */ … … 34 34 * Concatene une collection. Cette méthode va appliquer un transformation sur chaque élément 35 35 * avant d'appeler toString(). join([-1, 3, 0], " ,", doubleTransformer) == "-2, 6, 0" 36 * 36 * 37 37 * @param <E> type of items 38 38 * @param c la collection a concaténer. … … 69 69 /** 70 70 * Concatene une collection en appelant simplement toString() sur chaque élément. 71 * 71 * 72 72 * @param <T> type of collection 73 73 * @param c la collection a concaténer. 74 74 * @param sep le séparateur entre chaque élément. 75 75 * @return la chaine composée de chacun des éléments séparés par <code>sep</code>. 76 * @see #join(Collection, String, ITransformer)77 76 */ 78 77 static public <T> String join(Collection<T> c, String sep) { -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleDownloadTask.java
r33518 r34151 17 17 18 18 import org.openstreetmap.josm.data.Version; 19 import org.openstreetmap.josm.gui.PleaseWaitDialog; 19 20 import org.openstreetmap.josm.gui.PleaseWaitRunnable; 20 21 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; … … 28 29 * Asynchronous task for downloading a collection of modules. 29 30 * 30 * When the task is finished {@ see#getDownloadedModules()} replies the list of downloaded modules31 * and {@ see#getFailedModules()} replies the list of failed modules.31 * When the task is finished {@link #getDownloadedModules()} replies the list of downloaded modules 32 * and {@link #getFailedModules()} replies the list of failed modules. 32 33 * 33 34 */ … … 43 44 * Creates the download task 44 45 * 45 * @param parent the parent component relative to which the {@ seePleaseWaitDialog} is displayed46 * @param parent the parent component relative to which the {@link PleaseWaitDialog} is displayed 46 47 * @param toUpdate a collection of module descriptions for modules to update/download. Must not be null. 47 * @param title the title to display in the {@ seePleaseWaitDialog}48 * @param title the title to display in the {@link PleaseWaitDialog} 48 49 * @throws IllegalArgumentException thrown if toUpdate is null 49 50 */ … … 57 58 * Creates the task 58 59 * 59 * @param monitor a progress monitor. Defaults to {@ seeNullProgressMonitor#INSTANCE} if null60 * @param monitor a progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null 60 61 * @param toUpdate a collection of module descriptions for modules to update/download. Must not be null. 61 * @param title the title to display in the {@ seePleaseWaitDialog}62 * @param title the title to display in the {@link PleaseWaitDialog} 62 63 * @throws IllegalArgumentException thrown if toUpdate is null 63 64 */ -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleHandler.java
r33790 r34151 266 266 * 267 267 * @param modules the list of modules 268 * @param monitor the progress monitor. Defaults to {@ seeNullProgressMonitor#INSTANCE} if null.268 * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null. 269 269 */ 270 270 public static void loadModules(Component parent, Collection<ModuleInformation> modules, ProgressMonitor monitor) { … … 302 302 * module lists. 303 303 * 304 * @param monitor the progress monitor. Defaults to {@ seeNullProgressMonitor#INSTANCE} if null.304 * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null. 305 305 * @return the list of locally available module information 306 306 * … … 416 416 * @param parent the parent window for message boxes 417 417 * @param modules the collection of modules to update. Must not be null. 418 * @param monitor the progress monitor. Defaults to {@ seeNullProgressMonitor#INSTANCE} if null.418 * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null. 419 419 * @throws IllegalArgumentException thrown if modules is null 420 420 */ … … 622 622 }*/ 623 623 624 /* *624 /* 625 625 * Replies the module which most likely threw the exception <code>ex</code>. 626 626 * … … 647 647 }*/ 648 648 649 /* *649 /* 650 650 * Checks whether the exception <code>e</code> was thrown by a module. If so, 651 651 * conditionally deactivates the module, but asks the user first. -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ModuleInformation.java
r33518 r34151 221 221 * Load and instantiate the module 222 222 * 223 * @param the module class223 * @param klass the module class 224 224 * @return the instantiated and initialized module 225 225 */ -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ReadLocalModuleInformationTask.java
r33518 r34151 17 17 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 18 18 import org.openstreetmap.josm.io.OsmTransferException; 19 import org.openstreetmap.josm.plugins.opendata.OdPlugin; 19 20 import org.openstreetmap.josm.tools.ImageProvider; 20 21 import org.openstreetmap.josm.tools.Logging; … … 25 26 * in the local module repositories. 26 27 * 27 * It scans the files in the local modules repository (see {@ see Preferences#getModulesDirectory()}28 * It scans the files in the local modules repository (see {@link OdPlugin#getModulesDirectory()} 28 29 * and extracts module information from three kind of files: 29 30 * <ul> -
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/modules/ReadRemoteModuleInformationTask.java
r33518 r34151 69 69 * Creates the task 70 70 * 71 * @param monitor the progress monitor. Defaults to {@ seeNullProgressMonitor#INSTANCE} if null71 * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null 72 72 * @param sites the collection of download sites. Defaults to the empty collection if null. 73 73 */
Note:
See TracChangeset
for help on using the changeset viewer.