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.
45 public String getDescription(Locale locale);
48 * returns a localized description of the birthmark in default locale.
50 public String getDescription();
52 public String getExtractorClassName();
54 public Birthmark buildBirthmark();
56 public BirthmarkElement buildBirthmarkElement(String elementValue);
58 public BirthmarkPreprocessor getPreprocessor();
60 public String getPreprocessorClassName();
63 * returns a extractor for the birthmark of this service.
65 public BirthmarkExtractor getExtractor();
67 public String getComparatorClassName();
70 * returns a comparator for the birthmark of this service.
72 public BirthmarkComparator getComparator();
74 public boolean isExperimental();
76 public boolean isUserDefined();