Révision 3941
| TXM/trunk/pom.xml (revision 3941) | ||
|---|---|---|
| 77 | 77 |
<groupId>org.eclipse.tycho.extras</groupId> |
| 78 | 78 |
<artifactId>tycho-document-bundle-plugin</artifactId> |
| 79 | 79 |
<version>2.7.1</version> |
| 80 |
|
|
| 80 |
<configuration> |
|
| 81 |
<buildDirectory>/home/mdecorde/javadoctxmtmp</buildDirectory> |
|
| 82 |
<outputDirectory>/home/mdecorde/javadoctxm</outputDirectory> |
|
| 83 |
</configuration> |
|
| 81 | 84 |
</plugin> |
| 82 | 85 |
</plugins> |
| 83 | 86 |
</pluginManagement> |
| ... | ... | |
| 189 | 192 |
<groupId>org.eclipse.tycho.extras</groupId> |
| 190 | 193 |
<artifactId>tycho-document-bundle-plugin</artifactId> |
| 191 | 194 |
<configuration> |
| 192 |
<outputDirectory>/home/mdecorde/javadoctxm</outputDirectory> |
|
| 195 |
<buildDirectory>/home/mdecorde/javadoctxmtmp</buildDirectory> |
|
| 196 |
<outputDirectory>/home/mdecorde/javadoctxm</outputDirectory> |
|
| 193 | 197 |
</configuration> |
| 194 | 198 |
</plugin> |
| 195 | 199 |
|
| TXM/trunk/bundles/org.txm.jodconverter.core/src/main/java/org/artofsolving/jodconverter/office/OfficeManager.java (revision 3941) | ||
|---|---|---|
| 14 | 14 |
|
| 15 | 15 |
/** |
| 16 | 16 |
* An OfficeManager knows how to execute {@link OfficeTask}s.
|
| 17 |
* <p> |
|
| 18 | 17 |
* An OfficeManager implementation will typically manage one or more OfficeManager |
| 19 | 18 |
*/ |
| 20 | 19 |
public interface OfficeManager {
|
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/objects/CorpusCommandPreferences.java (revision 3941) | ||
|---|---|---|
| 6 | 6 |
import org.txm.core.preferences.TXMPreferences; |
| 7 | 7 |
|
| 8 | 8 |
/** |
| 9 |
* Wrapper for getting&setting corpus command default parameters
|
|
| 9 |
* Wrapper for getting and setting corpus command default parameters
|
|
| 10 | 10 |
* //TODO move the logic to TXMPreferences |
| 11 | 11 |
* |
| 12 | 12 |
* @author mdecorde |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/objects/EditionDefinition.java (revision 3941) | ||
|---|---|---|
| 5 | 5 |
import org.txm.core.preferences.TBXPreferences; |
| 6 | 6 |
|
| 7 | 7 |
/** |
| 8 |
* Wrapper for getting&setting edition definition parameters |
|
| 8 |
* Wrapper for getting&setting edition definition parameters
|
|
| 9 | 9 |
* |
| 10 | 10 |
* @author mdecorde |
| 11 | 11 |
* |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/utils/NameSpaceXmlNodePrinter.java (revision 3941) | ||
|---|---|---|
| 152 | 152 |
} |
| 153 | 153 |
|
| 154 | 154 |
/** |
| 155 |
* Whether empty elements are expanded from <tagName/> to <tagName></tagName>.
|
|
| 155 |
* Whether empty elements are expanded from {@code <tagName/>} to {@code <tagName></tagName>}.
|
|
| 156 | 156 |
* |
| 157 | 157 |
* @param expandEmptyElements if <code>true</code>, empty |
| 158 | 158 |
* elements will be represented by an opening tag |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/utils/BundleUtils.java (revision 3941) | ||
|---|---|---|
| 187 | 187 |
* @param bundle_id |
| 188 | 188 |
* @param source_relative_directory only used when TXM is run from Eclipse |
| 189 | 189 |
* @param file_path relative path to the file to copy |
| 190 |
* @param file_name the file name to copy <b>if file_name is a directory be sure to add "/" at the end of the file<b/>
|
|
| 190 |
* @param file_name the file name to copy <b>if file_name is a directory be sure to add "/" at the end of the file</b>
|
|
| 191 | 191 |
* @param outputDirectory |
| 192 | 192 |
* @return true if success |
| 193 | 193 |
*/ |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/xml/HookActivator.java (revision 3941) | ||
|---|---|---|
| 17 | 17 |
* |
| 18 | 18 |
* The Hook will be associated in the Hook constructor |
| 19 | 19 |
* |
| 20 |
* @param hook if the hook is already defined. you can associated it that way (or call hook.setActivator() && activator.setHook(
|
|
| 20 |
* @param hook if the hook is already defined. you can associated it that way (or call hook.setActivator() and activator.setHook(
|
|
| 21 | 21 |
*/ |
| 22 | 22 |
public HookActivator(Hook<T> hook) {
|
| 23 | 23 |
this.hook = hook; |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/xml/XMLProcessor.java (revision 3941) | ||
|---|---|---|
| 16 | 16 |
/** |
| 17 | 17 |
* Parse and write a XML file. If no hook specified the file is not transformed (mimic the implementation of the old StaxIdentityParser) |
| 18 | 18 |
* |
| 19 |
* See thee available Hook&Activators classes to do more things
|
|
| 19 |
* See the available Hook and Activators classes to do more things
|
|
| 20 | 20 |
* |
| 21 | 21 |
* @author mdecorde |
| 22 | 22 |
* |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/importer/scripts/filters/Filter.java (revision 3941) | ||
|---|---|---|
| 303 | 303 |
} |
| 304 | 304 |
|
| 305 | 305 |
/** |
| 306 |
* Called before {@link "filter()"}.
|
|
| 306 |
* Called before {@link #filter()}.
|
|
| 307 | 307 |
* |
| 308 | 308 |
* @return true, if successful |
| 309 | 309 |
*/ |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/Toolbox.java (revision 3941) | ||
|---|---|---|
| 744 | 744 |
} |
| 745 | 745 |
|
| 746 | 746 |
/** |
| 747 |
* Creates&Update workspace directory.
|
|
| 747 |
* Creates and Update workspace directory.
|
|
| 748 | 748 |
* |
| 749 | 749 |
* The update part consist of copying files from the install directory |
| 750 | 750 |
* |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/scripts/importer/StaxStackWriter.java (revision 3941) | ||
|---|---|---|
| 64 | 64 |
} |
| 65 | 65 |
|
| 66 | 66 |
/** |
| 67 |
* tagsToWrite: List<String> or List<[String, [String, String]]>
|
|
| 67 |
* tagsToWrite: {@code List<String> or List<[String, [String, String]]>}
|
|
| 68 | 68 |
* @throws XMLStreamException |
| 69 | 69 |
*/ |
| 70 | 70 |
public void writeStartElements(List<Object> tagsToWrite) throws XMLStreamException {
|
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/core/preferences/Base64.java (revision 3941) | ||
|---|---|---|
| 43 | 43 |
* <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>. |
| 44 | 44 |
* |
| 45 | 45 |
* <ul> |
| 46 |
* <li><a name="basic"><b>Basic</b></a>
|
|
| 46 |
* <li><a><b>Basic</b></a> |
|
| 47 | 47 |
* <p> Uses "The Base64 Alphabet" as specified in Table 1 of |
| 48 | 48 |
* RFC 4648 and RFC 2045 for encoding and decoding operation. |
| 49 | 49 |
* The encoder does not add any line feed (line separator) |
| 50 | 50 |
* character. The decoder rejects data that contains characters |
| 51 | 51 |
* outside the base64 alphabet.</p></li> |
| 52 | 52 |
* |
| 53 |
* <li><a name="url"><b>URL and Filename safe</b></a>
|
|
| 53 |
* <li><a><b>URL and Filename safe</b></a> |
|
| 54 | 54 |
* <p> Uses the "URL and Filename safe Base64 Alphabet" as specified |
| 55 | 55 |
* in Table 2 of RFC 4648 for encoding and decoding. The |
| 56 | 56 |
* encoder does not add any line feed (line separator) character. |
| 57 | 57 |
* The decoder rejects data that contains characters outside the |
| 58 | 58 |
* base64 alphabet.</p></li> |
| 59 | 59 |
* |
| 60 |
* <li><a name="mime"><b>MIME</b></a>
|
|
| 60 |
* <li><a><b>MIME</b></a> |
|
| 61 | 61 |
* <p> Uses the "The Base64 Alphabet" as specified in Table 1 of |
| 62 | 62 |
* RFC 2045 for encoding and decoding operation. The encoded output |
| 63 | 63 |
* must be represented in lines of no more than 76 characters each |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/core/preferences/TXMPreferences.java (revision 3941) | ||
|---|---|---|
| 40 | 40 |
* Base preferences initializer and manager. |
| 41 | 41 |
* |
| 42 | 42 |
* Getters return a value of preference looking in this order: |
| 43 |
* 1) local node linked to a TXM result if exists (ProjectScope - /project/<project_name>/<UUID of TXMResult>/<preference key>)
|
|
| 44 |
* 2) command global value (InstanceScope - /instance/<bundle_id>/<preference key>)
|
|
| 43 |
* 1) local node linked to a TXM result if exists (ProjectScope - {@code /project/<project_name>/<UUID of TXMResult>/<preference key>})
|
|
| 44 |
* 2) command global value (InstanceScope - {@code /instance/<bundle_id>/<preference key>})
|
|
| 45 | 45 |
* 3) alternative specified global value, |
| 46 |
* eg. engine preference added to TXMPreference.alternativeNodesQualifiers (InstanceScope - /instance/<bundle_id>/<preference key>)
|
|
| 46 |
* eg. engine preference added to TXMPreference.alternativeNodesQualifiers (InstanceScope - {@code /instance/<bundle_id>/<preference key>})
|
|
| 47 | 47 |
* 4) alternative specified default value, |
| 48 |
* eg. engine preference added to TXMPreference.alternativeNodesQualifiers (DefaultScope - /bundle_defaults/<bundle_id>/<preference key>)
|
|
| 49 |
* 5) command default value (DefaultScope - /bundle_defaults/<bundle_id>/<preference key>)
|
|
| 48 |
* eg. engine preference added to TXMPreference.alternativeNodesQualifiers (DefaultScope - {@code /bundle_defaults/<bundle_id>/<preference key>})
|
|
| 49 |
* 5) command default value (DefaultScope - {@code /bundle_defaults/<bundle_id>/<preference key>})
|
|
| 50 | 50 |
* 6) hard coded in getters |
| 51 | 51 |
* |
| 52 | 52 |
* Persistence of TXM results is done by calling flush() that creates a file named by the result node qualifier, |
| TXM/trunk/bundles/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 3941) | ||
|---|---|---|
| 88 | 88 |
public static final Pattern FILE_NAME_PATTERN = Pattern.compile("[^a-zA-Z0-9\\.-_]+"); //$NON-NLS-1$
|
| 89 | 89 |
|
| 90 | 90 |
public static final String UNDERSCORE = "_"; //$NON-NLS-1$ |
| 91 |
|
|
| 91 |
|
|
| 92 | 92 |
/** |
| 93 | 93 |
* Results counter to create unique ids. |
| 94 | 94 |
*/ |
| ... | ... | |
| 495 | 495 |
/** |
| 496 | 496 |
* Stores the parameters of the specified types used during last computing in the specified HashMap. |
| 497 | 497 |
* |
| 498 |
* @param parameterTypes |
|
| 499 |
* @param appendToLastParameters
|
|
| 498 |
* @param parametersTypes
|
|
| 499 |
* @param lastParameters
|
|
| 500 | 500 |
* @throws Exception |
| 501 | 501 |
*/ |
| 502 | 502 |
protected void updateLastParameters(ArrayList<Integer> parametersTypes, HashMap<String, Object> lastParameters) throws Exception {
|
| ... | ... | |
| 565 | 565 |
* Removes all the parameters of the specified type from the last parameters history. |
| 566 | 566 |
* |
| 567 | 567 |
* @param parameterType |
| 568 |
* @throws Exception |
|
| 569 | 568 |
*/ |
| 570 | 569 |
protected void clearLastParameters(int parameterType) {
|
| 571 | 570 |
|
| TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/ProcessBuilderBuilder.java (revision 3941) | ||
|---|---|---|
| 52 | 52 |
* (CLIX) then creates the corresponding java wrapper API code. |
| 53 | 53 |
* |
| 54 | 54 |
* example xml definition file : |
| 55 |
* |
|
| 55 |
* {@code
|
|
| 56 | 56 |
* <application name="progname" version="0.0.0" desc="..."> <progs> |
| 57 | 57 |
* <prog exec="prog.exe" desc="..."> <args> |
| 58 | 58 |
* <arg state="optional" type="none" name="thing" desc="the thing |
| ... | ... | |
| 60 | 60 |
* <arg state="must" type="none" name="compulsorything" desc=""/> |
| 61 | 61 |
* <arg state="multiple" type="none" name="onethingatleast" desc= |
| 62 | 62 |
* ""/> </args> </prog> </progs> </application> |
| 63 |
* } |
|
| 63 | 64 |
* @author mdecorde, sheiden |
| 64 | 65 |
*/ |
| 65 | 66 |
@Deprecated |
| TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/logger/Log.java (revision 3941) | ||
|---|---|---|
| 64 | 64 |
public static int MAX_NEWLINES = 10; |
| 65 | 65 |
|
| 66 | 66 |
/** |
| 67 |
* The CONSOLE flags indicates if messages with level < INFO are printed in
|
|
| 67 |
* The CONSOLE flags indicates if messages with level inferior to INFO are printed in
|
|
| 68 | 68 |
* console |
| 69 | 69 |
*/ |
| 70 | 70 |
public static boolean CONSOLE = false; |
| TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/BiHashMap.java (revision 3941) | ||
|---|---|---|
| 1 | 1 |
package org.txm.utils; |
| 2 | 2 |
|
| 3 |
import java.util.HashMap; |
|
| 4 | 3 |
import java.util.Properties; |
| 5 | 4 |
import java.util.Set; |
| 6 | 5 |
import java.util.concurrent.ConcurrentHashMap; |
| TXM/trunk/bundles/org.txm.utils.core/src/org/txm/utils/Diff.java (revision 3941) | ||
|---|---|---|
| 37 | 37 |
* "ignore whitespace" are implemented by modifying the <code>equals</code> and |
| 38 | 38 |
* <code>hashcode</code> methods for the objects compared. |
| 39 | 39 |
* <p> |
| 40 |
* The basic algorithm is described in: </br>
|
|
| 40 |
* The basic algorithm is described in: |
|
| 41 | 41 |
* "An O(ND) Difference Algorithm and its Variations", Eugene Myers, |
| 42 | 42 |
* Algorithmica Vol. 1 No. 2, 1986, p 251. |
| 43 | 43 |
* <p> |
Formats disponibles : Unified diff