source: trunk/gli/src/org/greenstone/gatherer/gems/GEMSConstants.java@ 12730

Last change on this file since 12730 was 12725, checked in by kjdon, 18 years ago

removed commented out strings

  • Property svn:keywords set to Author Date Id Revision
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 DELETE_ELEMENT = "deleteElement";
61 static int METADATA_INFO = 0;
62 static int METADATA_ELEMENT = 0;
63 static String NEW_ELEMENT = "ELEMENT";
64 static String MOVE_UP = "moveUp";
65 static String MOVE_DOWN = "moveDown";
66 static String EXTRACTED_METADATA_NAMESPACE = "ex";
67
68 static String[] SET_REQUIRED_ATTRIBUTES = new String[]{"contact","creator","family","lastchanged","namespace"};
69 static String[] SET_LANG_DEPEND_ATTR_NAMES = new String[]{"name","description"};
70
71 static String UNKNOWN_NAME="unknown";
72
73 static String MATADATASET_NAME="MetadataSet";
74
75 static String SYSTEM_ID = "http://www.greenstone.org/dtd/MetadataSet/1.0/MetadataSet.dtd";
76
77 static String[] DIALOG_OPTIONS = new String[]{Dictionary.get("General.OK"),Dictionary.get("General.Cancel")};
78
79 static String LABEL_ATTRIBUTE = "label";
80 static String DEFINITION_ATTRIBUTE = "definition";
81 static String COMMENT_ATTRIBUTE = "comment";
82
83 static String [] ELEMENT_REQUIRED_ATTRIBUTES = new String[] {"name"};
84
85 static String [] ELEMENT_LANG_DEPEND_ATTR_NAMES = new String[] {LABEL_ATTRIBUTE, DEFINITION_ATTRIBUTE, COMMENT_ATTRIBUTE};
86
87 static String [] ATTRIBUTES_COLUMN_NAMES = new String [] {
88 Dictionary.get("GEMS.AttributeTable.Name"), Dictionary.get("GEMS.AttributeTable.Value")};
89 static String [] LANG_DEPENDENT_ATTRIBUTES_COLUMN_NAMES = new String [] {
90 Dictionary.get("GEMS.AttributeTable.Name"), Dictionary.get("GEMS.AttributeTable.Language"), Dictionary.get("GEMS.AttributeTable.Value")};
91
92 static String METADATA_SET_FILE_EXTENSION = ".mds";
93}
Note: See TracBrowser for help on using the repository browser.