KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > dd > Method


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb3.dd;
8
9 import java.util.ArrayList JavaDoc;
10 import java.util.List JavaDoc;
11
12 /**
13  * Represents an <method> element of the ejb-jar.xml deployment descriptor
14  * for the 1.4 schema
15  *
16  * @version <tt>$Revision: 1.4.2.1 $</tt>
17  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
18  */

19 public class Method
20 {
21
22    private String JavaDoc ejbName = null;
23
24    private String JavaDoc methodName = null;
25    
26    private List JavaDoc methodParams = new ArrayList JavaDoc();
27
28    public String JavaDoc getEjbName()
29    {
30       return ejbName;
31    }
32
33    public void setEjbName(String JavaDoc ejbName)
34    {
35       this.ejbName = ejbName;
36    }
37
38    public String JavaDoc getMethodName()
39    {
40       return methodName;
41    }
42
43    public void setMethodName(String JavaDoc methodName)
44    {
45       this.methodName = methodName;
46    }
47    
48    public void addMethodParam(String JavaDoc methodParam)
49    {
50       methodParams.add(methodParam);
51    }
52    
53    public List JavaDoc getMethodParams()
54    {
55       return methodParams;
56    }
57
58    public String JavaDoc toString()
59    {
60       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
61       sb.append("[");
62       sb.append("ejbName=").append(ejbName);
63       sb.append("]");
64       return sb.toString();
65    }
66
67 }
68
Popular Tags