source: trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/IndexDocument.java@ 5944

Last change on this file since 5944 was 5944, checked in by cs025, 20 years ago

Index document type, metadata extensions

  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
Line 
1package org.greenstone.gsdl3.gs3build.doctypes;
2
3import java.io.File;
4import java.net.URL;
5import java.util.ArrayList;
6import java.util.List;
7import java.util.Map;
8
9import org.greenstone.gsdl3.gs3build.metadata.METSDescriptiveSet;
10import org.greenstone.gsdl3.gs3build.util.MultiMap;
11
12/**
13 * A metadata-pure document - it only contains metadata
14 * on other documents, and this will be added to them during
15 * the "extract" phase. The decoration of the other documents
16 * with this extra metadata will only occur later, as at the
17 * point that this document/file is loaded, we may not in fact
18 * have come across them yet...
19 */
20
21public class IndexDocument extends AbstractDocument
22{
23 public static final String INDEX_DOCUMENT_TYPE = "GSINDEX";
24
25 public IndexDocument(URL url)
26 { super(url);
27 }
28
29 public String getDocumentType()
30 { return INDEX_DOCUMENT_TYPE;
31 }
32
33 /**
34 * A pretty minimal and lazy document text extraction process.
35 */
36 public String getDocumentText()
37 { return "";
38 }
39
40 public METSDescriptiveSet getDocumentMetadata()
41 { return null;
42 }
43}
Note: See TracBrowser for help on using the repository browser.