OSDN Git Service

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