Changeset 34151 in osm for applications/editors/josm/plugins/opendata/includes/org/jopendocument
- Timestamp:
- 2018-04-08T15:09:55+02:00 (8 years ago)
- Location:
- applications/editors/josm/plugins/opendata/includes/org/jopendocument
- Files:
-
- 3 edited
-
dom/ODPackage.java (modified) (6 diffs)
-
dom/spreadsheet/Cell.java (modified) (5 diffs)
-
util/CollectionUtils.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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) {
Note:
See TracChangeset
for help on using the changeset viewer.
