summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescription.java
blob: 3cb16b46b1640494f4a782dd6791b3cc24d5ed14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package bjc.utils.components;

/**
 * Generic implementation of a description for a component
 * 
 * @author ben
 *
 */
public class ComponentDescription implements IDescribedComponent {
	/**
	 * The author of the component
	 */
	private String	author;
	/**
	 * The description of the component
	 */
	private String	description;
	/**
	 * The name of the component
	 */
	private String	name;
	/**
	 * The version of the component
	 */
	private int		version;

	/**
	 * Create a new component description
	 * 
	 * @param name
	 *            The name of the component
	 * @param author
	 *            The author of the component
	 * @param description
	 *            The description of the component
	 * @param version
	 *            The version of the component
	 */
	public ComponentDescription(String name, String author,
			String description, int version) {
		this.name = name;
		this.author = author;
		this.description = description;
		this.version = version;
	}

	@Override
	public String getAuthor() {
		return author;
	}

	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public int getVersion() {
		return version;
	}
}