1 /*
2 * Created on 15/03/2003
3 */
4 package net.sourceforge.pmd.jaxen;
5
6 import net.sourceforge.pmd.ast.Node;
7
8 /***
9 * @author daniels
10 *
11 */
12 public class Attribute {
13
14 private Node parent;
15 private String name;
16 private String value;
17
18 public Attribute(Node parent, String name, String value) {
19 this.parent = parent;
20 this.name = name;
21 this.value = value;
22 }
23
24 /***
25 * @return String
26 */
27 public String getName() {
28 return name;
29 }
30
31 /***
32 * @return String
33 */
34 public String getValue() {
35 return value;
36 }
37
38 /***
39 * Sets the name.
40 * @param name The name to set
41 */
42 public void setName(String name) {
43 this.name = name;
44 }
45
46 /***
47 * Sets the value.
48 * @param value The value to set
49 */
50 public void setValue(String value) {
51 this.value = value;
52 }
53
54 /***
55 * @return Node
56 */
57 public Node getParent() {
58 return parent;
59 }
60
61 /***
62 * Sets the parent.
63 * @param parent The parent to set
64 */
65 public void setParent(Node parent) {
66 this.parent = parent;
67 }
68
69 }
This page was automatically generated by Maven