1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.springmodules.validation.valang.functions;
18
19 /**
20 * Defines a function. This definition holds the function name
21 * and the fully qualified name of the function class.
22 *
23 * @author Uri Boness
24 */
25 public class FunctionDefinition {
26
27 private String name;
28
29 private String className;
30
31 /**
32 * Constructs a new FunctionDefinition.
33 */
34 public FunctionDefinition() {
35 this(null, null);
36 }
37
38 /**
39 * Constructs a new FunctionDefinition with a given name and fully qulified class name.
40 *
41 * @param name The name of the function.
42 * @param className The fully qualified class name of the function.
43 */
44 public FunctionDefinition(String name, String className) {
45 this.name = name;
46 this.className = className;
47 }
48
49
50
51 public String getName() {
52 return name;
53 }
54
55 public void setName(String name) {
56 this.name = name;
57 }
58
59 public String getClassName() {
60 return className;
61 }
62
63 public void setClassName(String className) {
64 this.className = className;
65 }
66 }