1 package com.github.celldynamics.quimp.plugin.engine;
2
3 import java.io.File;
4
5 import com.github.celldynamics.quimp.plugin.IQuimpCorePlugin;
6
7
8
9
10
11
12
13 public class PluginProperties {
14 private File file;
15 private int type;
16 private String className;
17 private String version;
18 private IQuimpCorePlugin ref = null;
19
20
21
22
23
24
25 public String getVersion() {
26 return version;
27 }
28
29
30
31
32
33
34 public String getClassName() {
35 return className;
36 }
37
38
39
40
41
42
43
44
45
46 public PluginProperties(final File file, final String className, int type, final String version) {
47 this.file = file;
48 this.type = type;
49 this.className = className;
50 if (version == null) {
51 this.version = "";
52 } else {
53 this.version = version;
54 }
55 }
56
57
58
59
60
61
62 public File getFile() {
63 return file;
64 }
65
66
67
68
69
70
71 public int getType() {
72 return type;
73 }
74
75 @Override
76 public String toString() {
77 return "ClassName: " + className + " path: " + file + " type: " + type + " ver: " + version;
78 }
79
80
81
82
83
84
85 public IQuimpCorePlugin getRef() {
86 return ref;
87 }
88
89
90
91
92
93
94
95 public void setRef(IQuimpCorePlugin ref) {
96 this.ref = ref;
97 }
98 }