You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
956 B
35 lines
956 B
package de.anomic.plasma.parser;
|
|
|
|
import java.util.Hashtable;
|
|
|
|
public class ParserInfo {
|
|
// general parser info
|
|
public Class<?> parserClass;
|
|
public String parserClassName;
|
|
|
|
public String parserName;
|
|
public String parserVersionNr;
|
|
|
|
// parser properties
|
|
public String[] libxDependencies;
|
|
public Hashtable<String, String> supportedMimeTypes;
|
|
|
|
// usage statistic
|
|
public int usageCount = 0;
|
|
|
|
public String toString() {
|
|
final StringBuffer toStr = new StringBuffer();
|
|
|
|
toStr.append(this.parserName).append(" V")
|
|
.append((this.parserVersionNr==null)?"0.0":this.parserVersionNr).append(" | ")
|
|
.append(this.parserClassName).append(" | ")
|
|
.append(this.supportedMimeTypes);
|
|
|
|
return toStr.toString();
|
|
}
|
|
|
|
public synchronized void incUsageCounter() {
|
|
this.usageCount++;
|
|
}
|
|
}
|