source: trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/RecogniserInterface.java@ 8495

Last change on this file since 8495 was 8495, checked in by kjdon, 19 years ago

New AbstractRecogniser class - skeleton to aid with implementing new recognisers. All current recognisers now extend this. the constructors no longer take the documentList as a parameter - this must be set using setListRepository.
new subclasses should set the class variables in the constructor (preferred_mome_type, filename_extensions, document_type)

  • Property svn:keywords set to Author Date Id Revision
File size: 453 bytes
Line 
1package org.greenstone.gsdl3.gs3build.doctypes;
2
3import java.net.URL;
4
5import org.greenstone.gsdl3.gs3build.metadata.*;
6
7/** Interface for Recogniser Objects
8 *
9 * A skeleton class is provided for simple Recognisers (AbstractRecogniser)
10 *
11*/
12public interface RecogniserInterface
13{
14 public void setListRepository(DocumentList docList);
15 public boolean parseDocument(METSFile fileReference);
16 public boolean parseDocument(URL fileReference);
17}
Note: See TracBrowser for help on using the repository browser.