source: trunk/greenstone3-extensions/gs3build/src/org/greenstone/gsdl3/gs3build/validator/ValidatorInterface.java@ 12188

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

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 806 bytes
Line 
1package org.greenstone.gsdl3.gs3build.validator;
2
3import org.greenstone.gsdl3.gs3build.doctypes.DocumentInterface;
4import org.greenstone.gsdl3.gs3build.doctypes.DocumentID;
5
6public interface ValidatorInterface
7{
8 /**
9 * Record the build manager to use for this expander - this is used
10 * to pass back any new directories into which expanded files are placed.
11 */
12 public void configure();
13
14 /**
15 * Attempt to expand a file. The returned result is <code>true</code> if the
16 * file was actually expanded.
17 *
18 * @param <code>DocumentID</code> the identity code of the document
19 * @param <code>DocumentInterface</code> the document itself
20 *
21 * @return <code>boolean</code> whether the file was validated.
22 */
23 public boolean validateDocument(DocumentID docID, DocumentInterface document);
24}
Note: See TracBrowser for help on using the repository browser.