001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.j2ee.dd.api.common;
043:
044: //
045: // This interface has all of the bean info accessor methods.
046:
047: import org.netbeans.modules.j2ee.dd.api.common.CommonDDBean;
048: import org.netbeans.modules.j2ee.dd.api.common.DescriptionInterface;
049:
050: /**
051: * Generated interface for EjbLocalRef element.
052: *
053: *<p><b><font color="red"><em>Important note: Do not provide an implementation of this interface unless you are a DD API provider!</em></font></b>
054: *</p>
055: */
056: public interface EjbLocalRef extends CommonDDBean, DescriptionInterface {
057:
058: public static final String EJB_REF_NAME = "EjbRefName"; // NOI18N
059: public static final String EJB_REF_TYPE = "EjbRefType"; // NOI18N
060: public static final String LOCAL_HOME = "LocalHome"; // NOI18N
061: public static final String LOCAL = "Local"; // NOI18N
062: public static final String EJB_LINK = "EjbLink"; // NOI18N
063: public static final String EJB_REF_TYPE_ENTITY = "Entity"; // NOI18N
064: public static final String EJB_REF_TYPE_SESSION = "Session"; // NOI18N
065:
066: /** Setter for ejb-ref-name property.
067: * @param value property value
068: */
069: public void setEjbRefName(String value);
070:
071: /** Getter for ejb-ref-name property.
072: * @return property value
073: */
074: public String getEjbRefName();
075:
076: /** Setter for ejb-ref-type property.
077: * @param value property value
078: */
079: public void setEjbRefType(String value);
080:
081: /** Getter for ejb-ref-type property.
082: * @return property value
083: */
084: public String getEjbRefType();
085:
086: /** Setter for local-home property.
087: * @param value property value
088: */
089: public void setLocalHome(String value);
090:
091: /** Getter for local-home property.
092: * @return property value
093: */
094: public String getLocalHome();
095:
096: /** Setter for local property.
097: * @param value property value
098: */
099: public void setLocal(String value);
100:
101: /** Getter for local property.
102: * @return property value
103: */
104: public String getLocal();
105:
106: /** Setter for ejb-link property.
107: * @param value property value
108: */
109: public void setEjbLink(String value);
110:
111: /** Getter for ejb-link property.
112: * @return property value
113: */
114: public String getEjbLink();
115:
116: // Java EE 5
117:
118: void setMappedName(String value)
119: throws VersionNotSupportedException;
120:
121: String getMappedName() throws VersionNotSupportedException;
122:
123: void setInjectionTarget(int index, InjectionTarget valueInterface)
124: throws VersionNotSupportedException;
125:
126: InjectionTarget getInjectionTarget(int index)
127: throws VersionNotSupportedException;
128:
129: int sizeInjectionTarget() throws VersionNotSupportedException;
130:
131: void setInjectionTarget(InjectionTarget[] value)
132: throws VersionNotSupportedException;
133:
134: InjectionTarget[] getInjectionTarget()
135: throws VersionNotSupportedException;
136:
137: int addInjectionTarget(InjectionTarget valueInterface)
138: throws VersionNotSupportedException;
139:
140: int removeInjectionTarget(InjectionTarget valueInterface)
141: throws VersionNotSupportedException;
142:
143: InjectionTarget newInjectionTarget()
144: throws VersionNotSupportedException;
145:
146: }
|