KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > framework > core > dm > ddf > Connection


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (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 General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package sync4j.framework.core.dm.ddf;
20
21
22 /**
23  * Corresponds to the single connection node in the management tree
24  *
25  * @author Stefano Nichele @ Funambol
26  *
27  * @version $Id: Connection.java,v 1.1 2005/05/16 17:32:55 nichele Exp $
28  */

29 public class Connection implements java.io.Serializable JavaDoc {
30
31     // --------------------------------------------------------------- Constants
32
public static final String JavaDoc CON_NAP = "/NAP";
33     public static final String JavaDoc CON_PX = "/PX";
34     public static final String JavaDoc CON_EXT = "/Ext";
35
36
37     // ------------------------------------------------------------ Private data
38
private NAP nap;
39     private PX px;
40     private Ext ext;
41
42
43     // ------------------------------------------------------------ Constructors
44
/**
45      * Creates a new Connection object
46      *
47      */

48     public Connection() {}
49
50
51      /**
52       * Creates a new Connection object with the given parameters
53       *
54       * @param nap the nap node
55       * @param px the px node
56       */

57      public Connection(final Ext ext,
58                        final NAP nap,
59                        final PX px ) {
60          this.nap = nap;
61          this.px = px;
62          this.ext = ext;
63      }
64
65
66      // ---------------------------------------------------------- Public methods
67

68      /**
69       * Gets the nap
70       *
71       * @return the nap
72       */

73      public NAP getNap() {
74          return nap;
75      }
76
77      /**
78       * Sets the nap
79       *
80       * @param the nap
81       */

82      public void setNap(NAP nap) {
83          this.nap = nap;
84      }
85
86      /**
87       * Gets the px
88       *
89       * @return the px
90       */

91      public PX getPX() {
92          return px;
93      }
94
95      /**
96       * Sets the px
97       *
98       * @param the px
99       */

100      public void setPX(PX px) {
101          this.px = px;
102      }
103
104      /**
105       * Gets the ext
106       *
107       * @return the ext
108       */

109      public Ext getExt() {
110          return ext;
111      }
112
113      /**
114       * Sets the ext
115       *
116       * @param the ext
117       */

118      public void setExt(Ext ext) {
119          this.ext = ext;
120      }
121
122  }
Popular Tags