KickJava   Java API By Example, From Geeks To Geeks.

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


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 <relationships> elements of the ejb-jar.xml deployment descriptor for the 1.4
14  * schema
15  *
16  * @version <tt>$Revision: 1.3.2.1 $</tt>
17  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
18  */

19 public class Relationships
20 {
21
22    private List JavaDoc ejbRelations = new ArrayList JavaDoc();
23
24    public List JavaDoc getEjbRelations()
25    {
26       return ejbRelations;
27    }
28
29    public void setEjbRelations(List JavaDoc ejbRelations)
30    {
31       this.ejbRelations = ejbRelations;
32    }
33
34    public void addEjbRelation(EjbRelation ejbRelation)
35    {
36       ejbRelations.add(ejbRelation);
37    }
38
39    public String JavaDoc toString()
40    {
41       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
42       sb.append("[");
43       sb.append("ejbRelations=").append(ejbRelations);
44       sb.append("]");
45       return sb.toString();
46    }
47 }
48
Popular Tags