01 /*
02 * TranslationConstants.java
03 * Copyright (c) 1998-2008, The University of Sheffield.
04 *
05 * This code is from the GATE project (http://gate.ac.uk/) and is free
06 * software licenced under the GNU General Public License version 3. It is
07 * distributed without any warranty. For more details see COPYING.txt in the
08 * top level directory (or at http://gatewiki.sf.net/COPYING.txt).
09 *
10 * Hamish Cunningham, 24th August 2006
11 */
12
13 package gate.yam.translate;
14
15 /**
16 * Methods used for accessing constants used in translation. Actual constants
17 * are defined in {@link gate.yam.translate.HtmlConstants} etc.
18 * @author Hamish Cunningham
19 */
20 public interface TranslationConstants
21 {
22 /** Get the path to the preamble resource. */
23 public String getPreamblePath();
24
25 /** Array mapping node type name to start/end strings. */
26 public String[][] getConstantsTable();
27
28 /** Array mapping predicate type name to attributes. */
29 public Object[][] getPredicatesTable();
30
31 /** Array position of the constant name / node type. */
32 final int CONSTANTNAME = 0;
33
34 /** Array position of the constant start string. */
35 final int CONSTANTSTART = 1;
36
37 /** Array position of the constant end string. */
38 final int CONSTANTEND = 2;
39
40 } // TranslationConstants
|