source: other-projects/FileTransfer-WebSocketPair/testGXTWithGreenstone/src/org/greenstone/gatherer/gems/GEMSConstants.java@ 33053

Last change on this file since 33053 was 33053, checked in by ak19, 5 years ago

I still had some stuff of Nathan Kelly's (FileTransfer-WebSocketPair) sitting on my USB. Had already commited the Themes folder at the time, 2 years back. Not sure if he wanted this additional folder commited. But I didn't want to delete it and decided it will be better off on SVN. When we use his project, if we find we didn't need this test folder, we can remove it from svn then.

File size: 3.7 KB
Line 
1/**
2 *#########################################################################
3 *
4 * A component of the Gatherer application, part of the Greenstone digital
5 * library suite from the New Zealand Digital Library Project at the
6 * University of Waikato, New Zealand.
7 *
8 * <BR><BR>
9 *
10 * Author: Shaoqun Wu, Greenstone Digital Library, University of Waikato
11 *
12 * <BR><BR>
13 *
14 * Copyright (C) 2006 New Zealand Digital Library Project
15 *
16 * <BR><BR>
17 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
22 *
23 * <BR><BR>
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
29 *
30 * <BR><BR>
31 *
32 * You should have received a copy of the GNU General Public License
33 * along with this program; if not, write to the Free Software
34 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
35 *########################################################################
36 */
37package org.greenstone.gatherer.gems;
38
39import org.greenstone.gatherer.Dictionary;
40
41public class GEMSConstants
42{
43
44 static String NAMESPACE_ATTRIBUTE = "namespace";
45 static String NAME_ATTRIBUTE = "name";
46 static String DESCRIPTION_ATTRIBUTE = "description";
47 static String CODE_ATTRIBUTE = "code";
48 static String LANGUAGE_ATTRIBUTE = "language";
49 static String SET_LANGUAGE_ELEMENT = "SetLanguage";
50 static String LANGUAGE_ELEMENT = "Language";
51 static String NAME_ELEMENT = "Name";
52 static String DESCRIPTION_ELEMENT = "Description";
53 static String DEFAULT_LANGUAGE ="en";
54 static String ATTRIBUTE_ELEMENT="Attribute";
55 static String ELEMENT_ELEMENT="Element";
56 static String METADATASET_ELEMENT="MetadataSet";
57 static String ADD_ATTRIBUTE = "addAttribute";
58 static String DELETE_ATTRIBUTE = "deleteAttribute";
59 static String ADD_ELEMENT = "addElement";
60 static String ADD_SUBELEMENT = "addSubElement";
61 static String DELETE_ELEMENT = "deleteElement";
62 static int METADATA_INFO = 0;
63 static int METADATA_ELEMENT = 0;
64 static String NEW_ELEMENT = "ELEMENT";
65 static String MOVE_UP = "moveUp";
66 static String MOVE_DOWN = "moveDown";
67 static String EXTRACTED_METADATA_NAMESPACE = "ex";
68
69 static String[] SET_REQUIRED_ATTRIBUTES = new String[]{"contact","creator","family","lastchanged","namespace"};
70 static String[] SET_LANG_DEPEND_ATTR_NAMES = new String[]{"name","description"};
71
72 static String UNKNOWN_NAME="unknown";
73
74 static String MATADATASET_NAME="MetadataSet";
75
76 static String SYSTEM_ID = "http://www.greenstone.org/dtd/MetadataSet/1.0/MetadataSet.dtd";
77
78 static String[] DIALOG_OPTIONS = new String[]{Dictionary.get("General.OK"),Dictionary.get("General.Cancel")};
79
80 static String LABEL_ATTRIBUTE = "label";
81 static String DEFINITION_ATTRIBUTE = "definition";
82 static String COMMENT_ATTRIBUTE = "comment";
83
84 static String [] ELEMENT_REQUIRED_ATTRIBUTES = new String[] {"name"};
85
86 static String [] ELEMENT_LANG_DEPEND_ATTR_NAMES = new String[] {LABEL_ATTRIBUTE, DEFINITION_ATTRIBUTE, COMMENT_ATTRIBUTE};
87
88 static String [] ATTRIBUTES_COLUMN_NAMES = new String [] {
89 Dictionary.get("GEMS.AttributeTable.Name"), Dictionary.get("GEMS.AttributeTable.Value")};
90 static String [] LANG_DEPENDENT_ATTRIBUTES_COLUMN_NAMES = new String [] {
91 Dictionary.get("GEMS.AttributeTable.Name"), Dictionary.get("GEMS.AttributeTable.Language"), Dictionary.get("GEMS.AttributeTable.Value")};
92
93 static String METADATA_SET_FILE_EXTENSION = ".mds";
94}
Note: See TracBrowser for help on using the repository browser.