KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > ide > PointcutLink


1 /*
2   Copyright (C) 2002 Renaud Pawlak <renaud@aopsys.com>
3
4   This program is free software; you can redistribute it and/or modify
5   it under the terms of the GNU Lesser General Public License as
6   published by the Free Software Foundation; either version 2 of the
7   License, or (at your option) any later version.
8
9   This program is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   GNU Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this program; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
17   USA */

18
19 package org.objectweb.jac.ide;
20
21 public class PointcutLink extends RelationLink {
22
23     public PointcutLink() {
24         super();
25     }
26    
27     public PointcutLink(Class JavaDoc start, Class JavaDoc end) {
28         super(start,end);
29     }
30
31     String JavaDoc methodPCD;
32    
33     /**
34      * Get the value of methodPCD.
35      * @return value of methodPCD.
36      */

37     public String JavaDoc getMethodPCD() {
38         return methodPCD;
39     }
40    
41     /**
42      * Set the value of methodPCD.
43      * @param v Value to assign to methodPCD.
44      */

45     public void setMethodPCD(String JavaDoc v) {
46         this.methodPCD = v;
47     }
48    
49     String JavaDoc hostPCD;
50    
51     /**
52      * Get the value of hostPCD.
53      * @return value of hostPCD.
54      */

55     public String JavaDoc getHostPCD() {
56         return hostPCD;
57     }
58    
59     /**
60      * Set the value of hostPCD.
61      * @param v Value to assign to hostPCD.
62      */

63     public void setHostPCD(String JavaDoc v) {
64         this.hostPCD = v;
65     }
66
67     /*
68    public String getStartRole() {
69       return aspectRole;
70    }
71
72    public void setStartRole(String role) {
73       aspectRole=role;
74    }
75
76    public String getEndRole() {
77       return getMethodPCD()+":"+getHostPCD();
78    }
79
80    public void setEndRole(String role) {
81       if(role==null) return;
82       int i=role.indexOf(":");
83       if(i==-1) {
84          setMethodPCD(role);
85       } else {
86          setMethodPCD(role.substring(0,i));
87          setHostPCD(role.substring(i+1));
88       }
89    }
90    */

91    
92     String JavaDoc aspectRole;
93    
94     /**
95      * Get the value of aspectRole.
96      * @return value of aspectRole.
97      */

98     public String JavaDoc getAspectRole() {
99         return aspectRole;
100     }
101    
102     /**
103      * Set the value of aspectRole.
104      * @param v Value to assign to aspectRole.
105      */

106     public void setAspectRole(String JavaDoc v) {
107         this.aspectRole = v;
108     }
109
110 }
111
Popular Tags