1 package org.andromda.core.anttasks;
2
3 /***
4 * This class represents user properties which are defined
5 * in the ant build.xml file as nested tags within the
6 * <code><andromda></code> tag. AndroMDAGenTask will collect the
7 * UserProperty objects and put them into the Velocity
8 * context. This makes the name-value-pairs available to
9 * templates.
10 * <p />
11 * An example usage could be:
12 * <blockquote><pre>
13 * <uml2ejb ...>
14 * <userProperty name="foreignKeySuffix" value="_FK" />
15 * </andromda>
16 * </pre></blockquote>
17 *
18 * @author Matthias Bohlen
19 *
20 */
21 public class UserProperty {
22 private String name;
23 private String value;
24
25 /***
26 * Returns the name.
27 * @return String
28 */
29 public String getName() {
30 return name;
31 }
32
33 /***
34 * Returns the value.
35 * @return String
36 */
37 public String getValue() {
38 return value;
39 }
40
41 /***
42 * Sets the name.
43 * @param name The name to set
44 */
45 public void setName(String name) {
46 this.name = name;
47 }
48
49 /***
50 * Sets the value.
51 * @param value The value to set
52 */
53 public void setValue(String value) {
54 this.value = value;
55 }
56
57 }