summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/components/ComponentDescriptionState.java
blob: 52a1999e115157c77bf9a45f53e133e09f059127 (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
67
package bjc.utils.components;

/**
 * Internal state of component description parser
 * 
 * @author ben
 *
 */
public class ComponentDescriptionState {
	private String	name;
	
	private String	description;

	private String	author;

	private int		version;

	/**
	 * Convert this state into the description it represents
	 * 
	 * @return The description represented by this state
	 */
	public ComponentDescription toDescription() {
		return new ComponentDescription(name, author, description,
				version);
	}

	/**
	 * Set the name of this component
	 * 
	 * @param name
	 *            The name of this component
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Set the description of this component
	 * 
	 * @param description
	 *            The description of this component
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * Set the author of this component
	 * 
	 * @param author
	 *            The author of this component
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

	/**
	 * Set the version of this component
	 * 
	 * @param version
	 *            The version of this component
	 */
	public void setVersion(int version) {
		this.version = version;
	}
}