KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > caucho > ejb > doclet > DocletRelation


1 /*
2  * Copyright (c) 1998-2004 Caucho Technology -- all rights reserved
3  *
4  * This file is part of Resin(R) Open Source
5  *
6  * Each copy or derived work must preserve the copyright notice and this
7  * notice unmodified.
8  *
9  * Resin Open Source is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * Resin Open Source is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
17  * of NON-INFRINGEMENT. See the GNU General Public License for more
18  * details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with Resin Open Source; if not, write to the
22  * Free SoftwareFoundation, Inc.
23  * 59 Temple Place, Suite 330
24  * Boston, MA 02111-1307 USA
25  *
26  * @author Scott Ferguson
27  */

28
29 package com.caucho.ejb.doclet;
30
31 import java.io.*;
32 import java.util.*;
33 import java.util.logging.*;
34
35 import com.caucho.util.L10N;
36 import com.caucho.util.BeanUtil;
37
38 import com.caucho.log.Log;
39
40 import com.caucho.vfs.Path;
41 import com.caucho.vfs.Vfs;
42 import com.caucho.vfs.WriteStream;
43
44 import com.caucho.make.Make;
45
46 import com.caucho.java.JavaWriter;
47
48 import com.caucho.config.ConfigException;
49 import com.caucho.config.LineConfigException;
50
51 import com.caucho.doclet.RootDocImpl;
52 import com.caucho.doclet.ClassDocImpl;
53 import com.caucho.doclet.MethodDocImpl;
54 import com.caucho.doclet.DocImpl;
55
56 /**
57  * Represents a relation generated by the doclet.
58  * picks up new jars.
59  */

60 public class DocletRelation {
61   private static final Logger log = Log.open(DocletRelation.class);
62   private static final L10N L = new L10N(DocletRelation.class);
63
64   private String _name;
65
66   private String _sourceEJB;
67   private String _sourceField;
68
69   private String _targetEJB;
70   private String _targetField;
71
72   /**
73    * Returns the relation's name.
74    */

75   public String getName()
76   {
77     return _name;
78   }
79
80   /**
81    * Sets the relation's name.
82    */

83   public void setName(String name)
84   {
85     _name = name;
86   }
87
88   /**
89    * Returns the source EJB. The source EJB is the one
90    * primarily reponsible for the link in a one way link.
91    */

92   public String getSourceEJB()
93   {
94     return _sourceEJB;
95   }
96
97   /**
98    * Sets the source EJB. The source EJB is the one
99    * primarily reponsible for the link in a one way link.
100    */

101   public void setSourceEJB(String ejb)
102   {
103     _sourceEJB = ejb;
104   }
105
106   /**
107    * Returns the source field. The source field is the one
108    * primarily reponsible for the link in a one way link.
109    */

110   public String getSourceField()
111   {
112     return _sourceField;
113   }
114
115   /**
116    * Sets the source field. The source field is the one
117    * primarily reponsible for the link in a one way link.
118    */

119   public void setSourceField(String ejb)
120   {
121     _sourceField = ejb;
122   }
123
124   /**
125    * Returns the target EJB. The target EJB is the one
126    * primarily reponsible for the link in a one way link.
127    */

128   public String getTargetEJB()
129   {
130     return _targetEJB;
131   }
132
133   /**
134    * Sets the target EJB. The target EJB is the one
135    * primarily reponsible for the link in a one way link.
136    */

137   public void setTargetEJB(String ejb)
138   {
139     _targetEJB = ejb;
140   }
141
142   /**
143    * Returns the target field. The target field is the one
144    * primarily reponsible for the link in a one way link.
145    */

146   public String getTargetField()
147   {
148     return _targetField;
149   }
150
151   /**
152    * Sets the target field. The target field is the one
153    * primarily reponsible for the link in a one way link.
154    */

155   public void setTargetField(String ejb)
156   {
157     _targetField = ejb;
158   }
159 }
160
Popular Tags