source: trunk/java-client/org/nzdl/gsdl/util/NzdlConstants.java@ 2277

Last change on this file since 2277 was 2277, checked in by say1, 23 years ago

fixed properties problem. saving IORs and properties in the users home directory. ChangeLog

  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/*
2 * NzdlConstants.java
3 * Copyright (C) 2001 New Zealand Digital Library Project
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20//the package we're in
21package org.nzdl.gsdl.util;
22
23/**
24 * Contains default values for: query and other stuff.
25 *
26 * @author Stuart Yeates ([email protected])
27 * @author Aziz Mahoui ([email protected])
28 * @author Gordon Paynter ([email protected])
29 * @author Dave Nichols ([email protected])
30 * @version $Revision: 2277 $
31 */
32public interface NzdlConstants {
33
34 String DEFAULT_QUERY_TERM = "";
35 String DEFAULT_QUERY_TYPE = "ranked";
36 boolean DEFAULT_CASE_FOLDING = true;
37 boolean DEFAULT_STEMMING = false;
38 String DEFAULT_CASE_FOLDING_STRING = "true";
39 String DEFAULT_STEMMING_STRING = "false";
40 String BOOLEAN_STRING = "boolean";
41 String RANKED_STRING = "ranked";
42
43
44 int DEFAULT_START_RESULTS = 1;
45 int DEFAULT_END_RESULTS = 10;
46 int DEFAULT_MAX_DOCS = 200;
47
48 /* preferences not under explicit dialog/user control */
49
50 String STEMMING = "stemming";
51 String CASE_FOLDING = "casefolding";
52 String QUERYTYPE = "querytype";
53
54
55 /* Preference Strings */
56
57 String DISPLAY_FIRST_DOC = "Automatically display the first document";
58 String RAW_TEXT = "Always display raw text (don't interpret HTML)";
59 String MULTIPLE_SERVERS = "Connect to multiple servers";
60 String LOG_SERVICE = "Log at the NzdlService level";
61 String CACHE_CORBA = "Cache corba requests";
62 String SAVE_DOCS = "Save documents";
63
64/* these appear to have been generated by
65the idlj compiler but not any more - so
66they are are being placed here */
67
68public static final int FRtermFreq = 1;
69public static final int FRmatchterms = 2;
70public static final int FROID = 4 ;
71public static final int FRsubcol = 8;
72public static final int FRranking = 16;
73public static final int FRdocFreq = 32;
74public static final int FRmetadata = 64;
75public static final int FRfullTextBrowse = 128;
76
77/* The constants above are based on these definitions from the C++ receptionist
78
79#define FRtermFreq 1
80#define FRmatchTerms 2
81#define FROID 4
82#define FRsubCol 8
83#define FRranking 16
84#define FRdocFreq 32
85#define FRmetadata 64
86// used to indicate a full text browse query for mgpp
87#define FRfullTextBrowse 128
88
89*/
90
91}
92
93
Note: See TracBrowser for help on using the repository browser.