01: package de.java2html.converter;
02:
03: import de.java2html.util.Ensure;
04:
05: public class ConverterMetaData {
06:
07: private final String defaultFileExtension;
08: private final String printName;
09: private final String name;
10:
11: public ConverterMetaData(String name, String printName,
12: String defaultFileExtension) {
13: Ensure.ensureArgumentNotNull(name);
14: Ensure.ensureArgumentNotNull(printName);
15: Ensure.ensureArgumentNotNull(defaultFileExtension);
16: this .name = name;
17: this .printName = printName;
18: this .defaultFileExtension = defaultFileExtension;
19: }
20:
21: /** Returns the default filename extension for the output format of this converter,
22: * e.g. "html" or "tex". */
23: public String getDefaultFileExtension() {
24: return defaultFileExtension;
25: }
26:
27: /** @return a String that can be used as logical name for this converter, i.e. for specifying this converter in an ant task. */
28: public String getName() {
29: return name;
30: }
31:
32: /** @return a String that can be used in user interfaces as name for the converter. */
33: public String getPrintName() {
34: return printName;
35: }
36: }
|