001 /* 002 Copyright (C) 2002 Renaud Pawlak <renaud@aopsys.com> 003 004 This program is free software; you can redistribute it and/or modify 005 it under the terms of the GNU Lesser General Public License as 006 published by the Free Software Foundation; either version 2 of the 007 License, or (at your option) any later version. 008 009 This program is distributed in the hope that it will be useful, 010 but WITHOUT ANY WARRANTY; without even the implied warranty of 011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 012 GNU Lesser General Public License for more details. 013 014 You should have received a copy of the GNU Lesser General Public 015 License along with this program; if not, write to the Free Software 016 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 017 USA */ 018 019 package org.objectweb.jac.ide; 020 021 public class PointcutLink extends RelationLink { 022 023 String methodPCD; 024 025 /** 026 * Get the value of methodPCD. 027 * @return value of methodPCD. 028 */ 029 public String getMethodPCD() { 030 return methodPCD; 031 } 032 033 /** 034 * Set the value of methodPCD. 035 * @param v Value to assign to methodPCD. 036 */ 037 public void setMethodPCD(String v) { 038 this.methodPCD = v; 039 } 040 041 String hostPCD; 042 043 /** 044 * Get the value of hostPCD. 045 * @return value of hostPCD. 046 */ 047 public String getHostPCD() { 048 return hostPCD; 049 } 050 051 /** 052 * Set the value of hostPCD. 053 * @param v Value to assign to hostPCD. 054 */ 055 public void setHostPCD(String v) { 056 this.hostPCD = v; 057 } 058 059 /* 060 public String getStartRole() { 061 return aspectRole; 062 } 063 064 public void setStartRole(String role) { 065 aspectRole=role; 066 } 067 068 public String getEndRole() { 069 return getMethodPCD()+":"+getHostPCD(); 070 } 071 072 public void setEndRole(String role) { 073 if(role==null) return; 074 int i=role.indexOf(":"); 075 if(i==-1) { 076 setMethodPCD(role); 077 } else { 078 setMethodPCD(role.substring(0,i)); 079 setHostPCD(role.substring(i+1)); 080 } 081 } 082 */ 083 084 String aspectRole; 085 086 /** 087 * Get the value of aspectRole. 088 * @return value of aspectRole. 089 */ 090 public String getAspectRole() { 091 return aspectRole; 092 } 093 094 /** 095 * Set the value of aspectRole. 096 * @param v Value to assign to aspectRole. 097 */ 098 public void setAspectRole(String v) { 099 this.aspectRole = v; 100 } 101 102 103 }