OSDN Git Service

cflib は plugins プロジェクトから,Stigmata直下のプロジェクトに移行したため,このリポジトリからは削除した.
[stigmata/stigmata-plugins.git] / kgram / src / main / java / jp / sourceforge / stigmata / birthmarks / kgram / KGramBasedBirthmarkExtractorService.java
1 package jp.sourceforge.stigmata.birthmarks.kgram;
2
3 import jp.sourceforge.stigmata.BirthmarkExtractor;
4 import jp.sourceforge.stigmata.spi.BirthmarkExtractorService;
5 import jp.sourceforge.stigmata.spi.BirthmarkService;
6
7 /**
8  * Birthmark Service Provider Interface.
9  *
10  * @author Haruaki TAMADA
11  */
12 public class KGramBasedBirthmarkExtractorService 
13         implements BirthmarkExtractorService{
14
15     /**
16      * returns a type of the birthmark this service provides.
17      */
18     @Override
19     public String getType(){
20         return "kgram";
21     }
22
23     /**
24      * returns a extractor for the birthmark of this service.
25      */
26     @Override
27     public BirthmarkExtractor getExtractor(BirthmarkService service){
28         return new KGramBasedBirthmarkExtractor(service);
29     }
30
31     @Override
32     public String getDescription(){
33         return "extract k-gram based birthmark";
34     }
35 }