2
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
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]"
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.
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.
41
package org.netbeans.modules.j2ee.dd.impl.common.annotation;
43
import java.beans.PropertyChangeListener;
44
import java.io.IOException;
45
import java.io.OutputStream;
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;
53
* @author Martin Adamek
55
public class EjbLocalRefImpl implements EjbLocalRef {
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;
63
public EjbLocalRefImpl(String name, String beanInterface, String beanName, String mappedName, String description) {
65
this.beanInterface = beanInterface;
66
this.beanName = beanName;
67
this.mappedName = mappedName;
68
this.description = description;
71
// <editor-fold desc="Model implementation">
73
public String getEjbRefName() {
77
public String getLocal() {
81
public String getEjbLink() {
85
public String getMappedName() throws VersionNotSupportedException {
89
public String getDefaultDescription() {
95
// <editor-fold defaultstate="collapsed" desc="Not implemented methods">
97
public Object clone() {
98
throw new UnsupportedOperationException("Not supported yet.");
101
public void setEjbRefName(String value) {
102
throw new UnsupportedOperationException("Not supported yet.");
105
public void setEjbRefType(String value) {
106
throw new UnsupportedOperationException("Not supported yet.");
109
public String getEjbRefType() {
110
throw new UnsupportedOperationException("Not supported yet.");
113
public void setLocalHome(String value) {
114
throw new UnsupportedOperationException("Not supported yet.");
117
public String getLocalHome() {
118
throw new UnsupportedOperationException("Not supported yet.");
121
public void setLocal(String value) {
122
throw new UnsupportedOperationException("Not supported yet.");
125
public void setEjbLink(String value) {
126
throw new UnsupportedOperationException("Not supported yet.");
129
public void setMappedName(String value) throws VersionNotSupportedException {
130
throw new UnsupportedOperationException("Not supported yet.");
133
public void setInjectionTarget(int index, InjectionTarget valueInterface) throws VersionNotSupportedException {
134
throw new UnsupportedOperationException("Not supported yet.");
137
public InjectionTarget getInjectionTarget(int index) throws VersionNotSupportedException {
138
throw new UnsupportedOperationException("Not supported yet.");
141
public int sizeInjectionTarget() throws VersionNotSupportedException {
142
throw new UnsupportedOperationException("Not supported yet.");
145
public void setInjectionTarget(InjectionTarget[] value) throws VersionNotSupportedException {
146
throw new UnsupportedOperationException("Not supported yet.");
149
public InjectionTarget[] getInjectionTarget() throws VersionNotSupportedException {
150
throw new UnsupportedOperationException("Not supported yet.");
153
public int addInjectionTarget(InjectionTarget valueInterface) throws VersionNotSupportedException {
154
throw new UnsupportedOperationException("Not supported yet.");
157
public int removeInjectionTarget(InjectionTarget valueInterface) throws VersionNotSupportedException {
158
throw new UnsupportedOperationException("Not supported yet.");
161
public InjectionTarget newInjectionTarget() throws VersionNotSupportedException {
162
throw new UnsupportedOperationException("Not supported yet.");
165
public void addPropertyChangeListener(PropertyChangeListener pcl) {
166
throw new UnsupportedOperationException("Not supported yet.");
169
public void removePropertyChangeListener(PropertyChangeListener pcl) {
170
throw new UnsupportedOperationException("Not supported yet.");
173
public void setId(String value) {
174
throw new UnsupportedOperationException("Not supported yet.");
177
public String getId() {
178
throw new UnsupportedOperationException("Not supported yet.");
181
public Object getValue(String propertyName) {
182
throw new UnsupportedOperationException("Not supported yet.");
185
public void write(OutputStream os) throws IOException {
186
throw new UnsupportedOperationException("Not supported yet.");
189
public void setDescription(String locale, String description) throws VersionNotSupportedException {
190
throw new UnsupportedOperationException("Not supported yet.");
193
public void setDescription(String description) {
194
throw new UnsupportedOperationException("Not supported yet.");
197
public void setAllDescriptions(Map descriptions) throws VersionNotSupportedException {
198
throw new UnsupportedOperationException("Not supported yet.");
201
public String getDescription(String locale) throws VersionNotSupportedException {
202
throw new UnsupportedOperationException("Not supported yet.");
205
public Map getAllDescriptions() {
206
throw new UnsupportedOperationException("Not supported yet.");
209
public void removeDescriptionForLocale(String locale) throws VersionNotSupportedException {
210
throw new UnsupportedOperationException("Not supported yet.");
213
public void removeDescription() {
214
throw new UnsupportedOperationException("Not supported yet.");
217
public void removeAllDescriptions() {
218
throw new UnsupportedOperationException("Not supported yet.");