1 package jp.sourceforge.stigmata.spi;
7 import java.util.Locale;
9 import jp.sourceforge.stigmata.Birthmark;
10 import jp.sourceforge.stigmata.BirthmarkComparator;
11 import jp.sourceforge.stigmata.BirthmarkElement;
12 import jp.sourceforge.stigmata.BirthmarkExtractor;
13 import jp.sourceforge.stigmata.BirthmarkPreprocessor;
16 * Birthmark service provider interface.
18 * @author Haruaki TAMADA
21 public interface BirthmarkSpi extends ServiceProvider{
23 * returns a type of the birthmark this service provides.
25 public String getType();
28 * returns a type of the birthmark for display.
30 public String getDisplayType(Locale locale);
33 * returns a type of the birthmark for display in default locale.
35 public String getDisplayType();
38 * returns a description of the birthmark this service provides.
40 public String getDefaultDescription();
43 * returns a localized description of the birthmark this service provides.
46 public String getDescription(Locale locale);
49 * returns a localized description of the birthmark in default locale.
52 public String getDescription();
54 public String getExtractorClassName();
56 public Birthmark buildBirthmark();
58 public BirthmarkElement buildBirthmarkElement(String elementValue);
60 public BirthmarkPreprocessor getPreprocessor();
62 public String getPreprocessorClassName();
65 * returns a extractor for the birthmark of this service.
67 public BirthmarkExtractor getExtractor();
69 public String getComparatorClassName();
72 * returns a comparator for the birthmark of this service.
74 public BirthmarkComparator getComparator();
76 public boolean isExperimental();
78 public boolean isUserDefined();