OSDN Git Service

change mode name experimental mode'
[stigmata/stigmata-core.git] / src / main / resources / resources / stigmata.xml
1 <?xml version="1.0" encoding="euc-jp"?>
2
3 <!-- 
4 $Id$
5 -->
6
7 <stigmata>
8   <birthmark-services>
9     <birthmark-service>
10       <type>uc_seq</type>
11       <display-name>Used Classes (compare as sequence)</display-name>
12       <description></description>
13       <extractor>
14         jp.sourceforge.stigmata.birthmarks.uc.UsedClassesBirthmarkExtractor
15       </extractor>
16       <comparator>
17         jp.sourceforge.stigmata.birthmarks.comparators.PlainBirthmarkComparator
18       </comparator>
19     </birthmark-service>
20
21     <birthmark-service>
22       <type>uc_dp</type>
23       <display-name>Used Classes (DP matching)</display-name>
24       <description></description>
25       <extractor>
26         jp.sourceforge.stigmata.birthmarks.uc.UsedClassesBirthmarkExtractor
27       </extractor>
28       <comparator>
29         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
30       </comparator>
31     </birthmark-service>
32
33     <birthmark-service>
34       <type>uc_ed</type>
35       <display-name>Used Classes (Edit distance)</display-name>
36       <description></description>
37       <extractor>
38         jp.sourceforge.stigmata.birthmarks.uc.UsedClassesBirthmarkExtractor
39       </extractor>
40       <comparator>
41         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
42       </comparator>
43     </birthmark-service>
44
45     <birthmark-service>
46       <type>is_ed</type>
47       <display-name>Inheritance Structure (Edit distance)</display-name>
48       <description></description>
49       <extractor>
50         jp.sourceforge.stigmata.birthmarks.is.InheritanceStructureBirthmarkExtractor
51       </extractor>
52       <comparator>
53         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
54       </comparator>
55     </birthmark-service>
56
57     <birthmark-service>
58       <type>is_dp</type>
59       <display-name>Inheritance Structure (DP matching)</display-name>
60       <description></description>
61       <extractor>
62         jp.sourceforge.stigmata.birthmarks.is.InheritanceStructureBirthmarkExtractor
63       </extractor>
64       <comparator>
65         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
66       </comparator>
67     </birthmark-service>
68
69     <birthmark-service>
70       <type>smc_dp</type>
71       <display-name>Sequence of Method Calls (DP matching)</display-name>
72       <description></description>
73       <extractor>
74         jp.sourceforge.stigmata.birthmarks.smc.SequentialMethodCallBirthmarkExtractor
75       </extractor>
76       <comparator>
77         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
78       </comparator>
79     </birthmark-service>
80
81     <birthmark-service>
82       <type>smc_ed</type>
83       <display-name>Sequence of Method Calls (Edit distance)</display-name>
84       <description></description>
85       <extractor>
86         jp.sourceforge.stigmata.birthmarks.smc.SequentialMethodCallBirthmarkExtractor
87       </extractor>
88       <comparator>
89         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
90       </comparator>
91     </birthmark-service>
92
93     <birthmark-service>
94       <type>cvfv_ed</type>
95       <display-name>Constant Value of Field Variable (Edit distance)</display-name>
96       <description></description>
97       <extractor>
98         jp.sourceforge.stigmata.birthmarks.cvfv.ConstantValueOfFieldVariableBirthmarkExtractor
99       </extractor>
100       <comparator>
101         jp.sourceforge.stigmata.birthmarks.comparators.EditDistanceBirthmarkComparator
102       </comparator>
103     </birthmark-service>
104
105     <birthmark-service>
106       <type>cvfv_dp</type>
107       <display-name>Constant Value of Field Variable (DP matching)</display-name>
108       <description></description>
109       <extractor>
110         jp.sourceforge.stigmata.birthmarks.cvfv.ConstantValueOfFieldVariableBirthmarkExtractor
111       </extractor>
112       <comparator>
113         jp.sourceforge.stigmata.birthmarks.comparators.DPMatchingBirthmarkComparator
114       </comparator>
115     </birthmark-service>
116   </birthmark-services>
117
118   <filterset-list>
119     <filterset>
120       <name>threshold</name>
121       <!--
122         available value is `all' or `any':
123         match all of filters or match any of filters
124       -->
125       <match>all</match>
126       <filter-list>
127         <filter>
128           <filter-type>similarity</filter-type>
129           <criterion>GREATER_THAN</criterion>
130           <attributes>
131             <attribute>
132               <name>threshold</name>
133               <value>0.8</value>
134             </attribute>
135           </attributes>
136         </filter>
137         <filter>
138           <filter-type>name</filter-type>
139           <criterion>NOT_MATCH</criterion>
140           <attributes>
141             <attribute>
142               <name>value</name>
143               <value><!-- value --></value>
144             </attribute>
145           </attributes>
146         </filter>
147       </filter-list>
148     </filterset>
149     <filterset>
150       <name>elementcounts</name>
151       <match>all</match>
152       <filter-list>
153         <filter>
154           <filter-type>elementcount</filter-type>
155           <criterion>GREATER_EQUALS</criterion>
156           <attributes>
157             <attribute>
158               <name>target</name>
159               <value>ONE_OF_TARGETS</value>
160             </attribute>
161             <attribute>
162               <name>birthmarkType</name>
163               <value>uc</value>
164             </attribute>
165             <attribute>
166               <name>threshold</name>
167               <value>10</value>
168             </attribute>
169           </attributes>
170         </filter>
171       </filter-list>
172     </filterset>
173   </filterset-list>
174
175   <!--
176     Settings for wellknown classes.
177     ¥Ñ¥Ã¥±¡¼¥¸¤ÎÀÜƬ¼­¡¤¥¯¥é¥¹Ì¾¤ÎÀÜÈø¼­¡¤¥¯¥é¥¹¤Î´°Á´½¤¾þ̾¤Ç
178     ÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡¥
179    -->
180   <wellknown-classes>
181     <!--
182       Those names are excluded from wellknown classes, even if
183       following parts define the name is contain wellknown classes.
184       ¤³¤ÎÃæ¤Ë´Þ¤Þ¤ì¤ë¤â¤Î¤Ï¾¤Ç¤¤¤¯¤é wellknown ¤ÈÀßÄꤵ¤ì¤Æ¤¤¤Æ¤â̵»ë¤¹¤ë¡¥
185     -->
186     <exclude><fully-name><suffix>Exception</suffix></fully-name></exclude>
187     <exclude><fully-name><suffix>Error</suffix></fully-name></exclude>
188     <exclude><fully-name><match>java.lang.Throwable</match></fully-name></exclude>
189     <exclude><fully-name><match>java.lang.ThreadDeath</match></fully-name></exclude>
190
191     <!-- Package names includes JDK 1.5 -->
192     <package-name><prefix>java</prefix></package-name>
193     <package-name><prefix>javax</prefix></package-name>
194     <package-name><prefix>org.omg</prefix></package-name>
195     <package-name><prefix>org.xml</prefix></package-name>
196     <package-name><prefix>org.w3c</prefix></package-name>
197     <package-name><prefix>org.ietf</prefix></package-name>
198
199     <!-- ¤½¤Î¾¡¤¤è¤¯»È¤ï¤ì¤Æ¤¤¤½¤¦¤Ê¥Ñ¥Ã¥±¡¼¥¸ -->
200     <package-name><prefix>org.gnu</prefix></package-name>
201     <package-name><prefix>com.apple</prefix></package-name>
202     <package-name><prefix>pnuts</prefix></package-name>
203     <package-name><prefix>org.eclipse</prefix></package-name>
204     <package-name><prefix>com.sun</prefix></package-name>
205     <package-name><prefix>sun</prefix></package-name>
206     <package-name><prefix>junit</prefix></package-name>
207     <package-name><prefix>org.apache</prefix></package-name>
208
209     <class-name><suffix>Test</suffix></class-name>
210 <!--
211     <class-name><match>well.known.class.name</match></class-name>
212 -->
213 <!--
214     <fully-name><suffix>Test</suffix></fully-name>
215     <fully-name><prefix>fully.class.name.preffix</prefix></fully-name>
216     <fully-name><match>fully.class.name.match</match></fully-name>
217 -->
218   </wellknown-classes>
219
220   <classpath-list>
221     <!-- URL·Á¼°¤Î¥¯¥é¥¹¥Ñ¥¹ÀßÄê -->
222     <!--
223     <classpath>url/format/of/path/to/jar/file</classpath>
224     -->
225   </classpath-list>
226
227   <!-- Properties for birthmark context -->
228   <properties>
229     <property>
230       <name>extractor.kgram.KValue</name>
231       <value>4</value>
232     </property>
233     <property>
234       <name>extractor.kmc.KValue</name>
235       <value>4</value>
236     </property>
237     <property>
238       <name>birthmark.store.target</name>
239       <value>MEMORY</value>
240     </property>
241     <property>\r
242       <name>override.exists.plugin</name>\r
243       <value>yes</value>\r
244     </property>\r
245 <!--
246     <property>
247       <property-name>name</property-name>
248       <property-value>value</property-value>
249     </property>
250 -->
251   </properties>
252 </stigmata>