Last change
on this file since 5211 was 5165, checked in by jmt12, 21 years ago |
One day this class will be in charge of loading and managing the classifier/plugin/perl script arguments.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | package org.greenstone.gatherer.cdm;
|
---|
2 |
|
---|
3 | import java.io.*;
|
---|
4 | import org.greenstone.gatherer.cdm.DOMProxyListEntry;
|
---|
5 | import org.greenstone.gatherer.util.Utility;
|
---|
6 | import org.w3c.dom.*;
|
---|
7 |
|
---|
8 | public class Library {
|
---|
9 |
|
---|
10 | static final public String CLASSIFIER = "classifiers.xml";
|
---|
11 | static final public String PERLLIB_PATH = "perllib" + File.separator;
|
---|
12 | static final public String PLUGIN = "plugins.xml";
|
---|
13 |
|
---|
14 | private Document collection_section;
|
---|
15 | private Document general_section;
|
---|
16 | private DOMProxyListEntry entry;
|
---|
17 |
|
---|
18 | /** The default constructor prepares a library which attempts to reload the appropriate library file, then validates any and all entries in this file against the details found from either the classifier or plugin scripts. If both of these fail then a default library of arguments is retrieved from the xml folder.
|
---|
19 | * @param type an int specifying the type of arguments to load
|
---|
20 | */
|
---|
21 | public Library(String type) {
|
---|
22 | //load(new File(Utility.BASE_DIR + type),);
|
---|
23 | }
|
---|
24 |
|
---|
25 | public void collectionChanged(boolean ready) {
|
---|
26 |
|
---|
27 | }
|
---|
28 |
|
---|
29 | public DOMProxyListEntry get(String name) {
|
---|
30 | return null;
|
---|
31 | }
|
---|
32 |
|
---|
33 | public void registerReturnObject(DOMProxyListEntry entry) {
|
---|
34 |
|
---|
35 | }
|
---|
36 |
|
---|
37 | private void load(File library_file, File perl_folder, File default_library, Document document) {
|
---|
38 | // Try to reload an existing library from gli folder
|
---|
39 | try {
|
---|
40 |
|
---|
41 |
|
---|
42 | }
|
---|
43 | catch(Exception error) {
|
---|
44 | }
|
---|
45 | // Now search through the appropriate perllib folder validating each library entry. If no current entry exists create a new one
|
---|
46 |
|
---|
47 | // If the library is still empty load the default library
|
---|
48 | }
|
---|
49 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.