1 package net.sf.jour.config;
2
3 import java.util.List;
4 import java.util.Vector;
5
6 public class Aspect {
7
8 String type;
9
10 String descr;
11
12 String typedef;
13
14 List pointcut;
15
16 List properties;
17
18 boolean enabled;
19
20 public boolean isEnabled() {
21 return enabled;
22 }
23
24 public void setEnabled(boolean enabled) {
25 this.enabled = enabled;
26 }
27
28 public String getDescr() {
29 return descr;
30 }
31
32 public void setDescr(String descr) {
33 this.descr = descr;
34 }
35
36 public List getPointcut() {
37 return pointcut;
38 }
39
40 public void setPointcut(List pointcut) {
41 this.pointcut = pointcut;
42 }
43
44 public void addPointcut(Pointcut pointcut) {
45 if (this.pointcut == null) {
46 this.pointcut = new Vector();
47 }
48 this.pointcut.add(pointcut);
49 }
50
51 public String getType() {
52 return type;
53 }
54
55 public void setType(String type) {
56 this.type = type;
57 }
58
59 public String getTypedef() {
60 return typedef;
61 }
62
63 public void setTypedef(String typedef) {
64 this.typedef = typedef;
65 }
66
67 public List getProperty() {
68 return properties;
69 }
70
71 public void setProperty(List properties) {
72 this.properties = properties;
73 }
74
75
76 public void addProperty(AspectProperty property) {
77 if (this.properties == null) {
78 this.properties = new Vector();
79 }
80 this.properties.add(property);
81 }
82 }