1 /*
2 * sbxb library, part of ULMgen product
3 * Copyright (C) 2003,2005 Thierry Beigbeder
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 /*
20 * $Header: $
21 * $Revision: $
22 * $Date: $
23 *
24 * History :
25 * Who yyyy/mm/dd Action
26 * -------- ---------- ------
27 */
28
29
30 package org.otvl.sbxbsamp.abcref;
31
32
33 // Insert here additional imports
34
35
36
37
38 /***
39 *
40 * @author
41 * @version
42 */
43
44
45 public class CRefee
46 extends BaseRefee
47
48 {
49 /*-------------------------------------------------------------------------
50 * Attributes declaration
51 *-------------------------------------------------------------------------*/
52 /***
53 *
54 */
55 private String cid;
56
57
58 /*-------------------------------------------------------------------------
59 * Associations declaration
60 *-------------------------------------------------------------------------*/
61
62
63 /*-------------------------------------------------------------------------
64 * Operations
65 *-------------------------------------------------------------------------*/
66 /***
67 * Provides a unique reference for the current object.
68 * The class implementing the reference must implement hashcode/equals.
69 * @return Object
70 */
71 protected Object doGetReference()
72 {
73 Object vDoGetReference;
74
75 vDoGetReference = new ABCRef(getClass(),"" + cid);
76 return vDoGetReference;
77
78 }
79 /***
80 * Called when a reference has been instantiated and updated after successful parsing.
81 * May be implemented by a referencee to update its state from the state of the reference.
82 * @param ref
83 */
84 public void doSetSbxbReference(
85 Object ref
86 )
87 {
88
89 ABCRef rr = (ABCRef)ref;
90 cid = rr.id;
91
92 }
93
94
95 /*-------------------------------------------------------------------------
96 * Attribute accessors
97 *-------------------------------------------------------------------------*/
98 //------------------------
99 // Accessors for attribute cid
100 //------------------------
101 /***
102 * Returns the cid.<br/>
103 *
104 * @return String
105 */
106 public String getCid() {
107 String vCid = cid;
108 return vCid;
109 }
110
111 /***
112 * Sets the cid.<br/>
113 *
114 * @param cid The cid to set
115 */
116 public void setCid(String cid) {
117 this.cid = cid;
118 }
119
120
121
122 /*-------------------------------------------------------------------------
123 * Association accessors
124 *-------------------------------------------------------------------------*/
125
126 }