~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to j2ee/ddapi/src/org/netbeans/modules/j2ee/dd/impl/common/annotation/EjbLocalRefImpl.java

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 
3
 *
 
4
 * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
 
5
 *
 
6
 * The contents of this file are subject to the terms of either the GNU
 
7
 * General Public License Version 2 only ("GPL") or the Common
 
8
 * Development and Distribution License("CDDL") (collectively, the
 
9
 * "License"). You may not use this file except in compliance with the
 
10
 * License. You can obtain a copy of the License at
 
11
 * http://www.netbeans.org/cddl-gplv2.html
 
12
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
 
13
 * specific language governing permissions and limitations under the
 
14
 * License.  When distributing the software, include this License Header
 
15
 * Notice in each file and include the License file at
 
16
 * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
 
17
 * particular file as subject to the "Classpath" exception as provided
 
18
 * by Sun in the GPL Version 2 section of the License file that
 
19
 * accompanied this code. If applicable, add the following below the
 
20
 * License Header, with the fields enclosed by brackets [] replaced by
 
21
 * your own identifying information:
 
22
 * "Portions Copyrighted [year] [name of copyright owner]"
 
23
 *
 
24
 * Contributor(s):
 
25
 *
 
26
 * The Original Software is NetBeans. The Initial Developer of the Original
 
27
 * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
 
28
 * Microsystems, Inc. All Rights Reserved.
 
29
 *
 
30
 * If you wish your version of this file to be governed by only the CDDL
 
31
 * or only the GPL Version 2, indicate your decision by adding
 
32
 * "[Contributor] elects to include this software in this distribution
 
33
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
 
34
 * single choice of license, a recipient has the option to distribute
 
35
 * your version of this file under either the CDDL, the GPL Version 2 or
 
36
 * to extend the choice of license to its licensees as provided above.
 
37
 * However, if you add GPL Version 2 code and therefore, elected the GPL
 
38
 * Version 2 license, then the option applies only if the new code is
 
39
 * made subject to such option by the copyright holder.
 
40
 */
 
41
package org.netbeans.modules.j2ee.dd.impl.common.annotation;
 
42
 
 
43
import java.beans.PropertyChangeListener;
 
44
import java.io.IOException;
 
45
import java.io.OutputStream;
 
46
import java.util.Map;
 
47
import org.netbeans.modules.j2ee.dd.api.common.EjbLocalRef;
 
48
import org.netbeans.modules.j2ee.dd.api.common.InjectionTarget;
 
49
import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException;
 
50
 
 
51
/**
 
52
 *
 
53
 * @author Martin Adamek
 
54
 */
 
55
public class EjbLocalRefImpl implements EjbLocalRef {
 
56
 
 
57
    private final String name;
 
58
    private final String beanInterface;
 
59
    private final String beanName;
 
60
    private final String mappedName;
 
61
    private final String description;
 
62
 
 
63
    public EjbLocalRefImpl(String name, String beanInterface, String beanName, String mappedName, String description) {
 
64
        this.name = name;
 
65
        this.beanInterface = beanInterface;
 
66
        this.beanName = beanName;
 
67
        this.mappedName = mappedName;
 
68
        this.description = description;
 
69
    }
 
70
    
 
71
    // <editor-fold desc="Model implementation">
 
72
 
 
73
    public String getEjbRefName() {
 
74
        return name;
 
75
    }
 
76
 
 
77
    public String getLocal() {
 
78
        return beanInterface;
 
79
    }
 
80
 
 
81
    public String getEjbLink() {
 
82
        return beanName;
 
83
    }
 
84
 
 
85
    public String getMappedName() throws VersionNotSupportedException {
 
86
        return mappedName;
 
87
    }
 
88
 
 
89
    public String getDefaultDescription() {
 
90
        return description;
 
91
    }
 
92
 
 
93
    // </editor-fold>
 
94
 
 
95
    // <editor-fold defaultstate="collapsed" desc="Not implemented methods">
 
96
    
 
97
    public Object clone() {
 
98
        throw new UnsupportedOperationException("Not supported yet.");
 
99
    }
 
100
 
 
101
    public void setEjbRefName(String value) {
 
102
        throw new UnsupportedOperationException("Not supported yet.");
 
103
    }
 
104
 
 
105
    public void setEjbRefType(String value) {
 
106
        throw new UnsupportedOperationException("Not supported yet.");
 
107
    }
 
108
 
 
109
    public String getEjbRefType() {
 
110
        throw new UnsupportedOperationException("Not supported yet.");
 
111
    }
 
112
 
 
113
    public void setLocalHome(String value) {
 
114
        throw new UnsupportedOperationException("Not supported yet.");
 
115
    }
 
116
 
 
117
    public String getLocalHome() {
 
118
        throw new UnsupportedOperationException("Not supported yet.");
 
119
    }
 
120
 
 
121
    public void setLocal(String value) {
 
122
        throw new UnsupportedOperationException("Not supported yet.");
 
123
    }
 
124
 
 
125
    public void setEjbLink(String value) {
 
126
        throw new UnsupportedOperationException("Not supported yet.");
 
127
    }
 
128
 
 
129
    public void setMappedName(String value) throws VersionNotSupportedException {
 
130
        throw new UnsupportedOperationException("Not supported yet.");
 
131
    }
 
132
 
 
133
    public void setInjectionTarget(int index, InjectionTarget valueInterface) throws VersionNotSupportedException {
 
134
        throw new UnsupportedOperationException("Not supported yet.");
 
135
    }
 
136
 
 
137
    public InjectionTarget getInjectionTarget(int index) throws VersionNotSupportedException {
 
138
        throw new UnsupportedOperationException("Not supported yet.");
 
139
    }
 
140
 
 
141
    public int sizeInjectionTarget() throws VersionNotSupportedException {
 
142
        throw new UnsupportedOperationException("Not supported yet.");
 
143
    }
 
144
 
 
145
    public void setInjectionTarget(InjectionTarget[] value) throws VersionNotSupportedException {
 
146
        throw new UnsupportedOperationException("Not supported yet.");
 
147
    }
 
148
 
 
149
    public InjectionTarget[] getInjectionTarget() throws VersionNotSupportedException {
 
150
        throw new UnsupportedOperationException("Not supported yet.");
 
151
    }
 
152
 
 
153
    public int addInjectionTarget(InjectionTarget valueInterface) throws VersionNotSupportedException {
 
154
        throw new UnsupportedOperationException("Not supported yet.");
 
155
    }
 
156
 
 
157
    public int removeInjectionTarget(InjectionTarget valueInterface) throws VersionNotSupportedException {
 
158
        throw new UnsupportedOperationException("Not supported yet.");
 
159
    }
 
160
 
 
161
    public InjectionTarget newInjectionTarget() throws VersionNotSupportedException {
 
162
        throw new UnsupportedOperationException("Not supported yet.");
 
163
    }
 
164
 
 
165
    public void addPropertyChangeListener(PropertyChangeListener pcl) {
 
166
        throw new UnsupportedOperationException("Not supported yet.");
 
167
    }
 
168
 
 
169
    public void removePropertyChangeListener(PropertyChangeListener pcl) {
 
170
        throw new UnsupportedOperationException("Not supported yet.");
 
171
    }
 
172
 
 
173
    public void setId(String value) {
 
174
        throw new UnsupportedOperationException("Not supported yet.");
 
175
    }
 
176
 
 
177
    public String getId() {
 
178
        throw new UnsupportedOperationException("Not supported yet.");
 
179
    }
 
180
 
 
181
    public Object getValue(String propertyName) {
 
182
        throw new UnsupportedOperationException("Not supported yet.");
 
183
    }
 
184
 
 
185
    public void write(OutputStream os) throws IOException {
 
186
        throw new UnsupportedOperationException("Not supported yet.");
 
187
    }
 
188
 
 
189
    public void setDescription(String locale, String description) throws VersionNotSupportedException {
 
190
        throw new UnsupportedOperationException("Not supported yet.");
 
191
    }
 
192
 
 
193
    public void setDescription(String description) {
 
194
        throw new UnsupportedOperationException("Not supported yet.");
 
195
    }
 
196
 
 
197
    public void setAllDescriptions(Map descriptions) throws VersionNotSupportedException {
 
198
        throw new UnsupportedOperationException("Not supported yet.");
 
199
    }
 
200
 
 
201
    public String getDescription(String locale) throws VersionNotSupportedException {
 
202
        throw new UnsupportedOperationException("Not supported yet.");
 
203
    }
 
204
 
 
205
    public Map getAllDescriptions() {
 
206
        throw new UnsupportedOperationException("Not supported yet.");
 
207
    }
 
208
 
 
209
    public void removeDescriptionForLocale(String locale) throws VersionNotSupportedException {
 
210
        throw new UnsupportedOperationException("Not supported yet.");
 
211
    }
 
212
 
 
213
    public void removeDescription() {
 
214
        throw new UnsupportedOperationException("Not supported yet.");
 
215
    }
 
216
 
 
217
    public void removeAllDescriptions() {
 
218
        throw new UnsupportedOperationException("Not supported yet.");
 
219
    }
 
220
 
 
221
    // </editor-fold>
 
222
 
 
223
}