01: package de.anomic.plasma.parser;
02:
03: import java.util.Hashtable;
04:
05: public class ParserInfo {
06: // general parser info
07: public Class<?> parserClass;
08: public String parserClassName;
09:
10: public String parserName;
11: public String parserVersionNr;
12:
13: // parser properties
14: public String[] libxDependencies;
15: public Hashtable<String, String> supportedMimeTypes;
16:
17: // usage statistic
18: public int usageCount = 0;
19:
20: public String toString() {
21: StringBuffer toStr = new StringBuffer();
22:
23: toStr.append(this .parserName).append(" V").append(
24: (this .parserVersionNr == null) ? "0.0"
25: : this .parserVersionNr).append(" | ").append(
26: this .parserClassName).append(" | ").append(
27: this .supportedMimeTypes);
28:
29: return toStr.toString();
30: }
31:
32: public synchronized void incUsageCounter() {
33: this.usageCount++;
34: }
35: }
|