KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > dd > api > common > ResourceRef


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.j2ee.dd.api.common;
21
22 /**
23  * Generated interface for ResourceRef element.
24  *
25  *<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>
26  *</p>
27  */

28 public interface ResourceRef extends CommonDDBean, DescriptionInterface {
29         public static final String JavaDoc RES_REF_NAME = "ResRefName"; // NOI18N
30
public static final String JavaDoc RES_TYPE = "ResType"; // NOI18N
31
public static final String JavaDoc RES_AUTH = "ResAuth"; // NOI18N
32
public static final String JavaDoc RES_SHARING_SCOPE = "ResSharingScope"; // NOI18N
33
public static final String JavaDoc RES_AUTH_APPLICATION = "Application"; // NOI18N
34
public static final String JavaDoc RES_AUTH_CONTAINER = "Container"; // NOI18N
35
public static final String JavaDoc RES_SHARING_SCOPE_SHAREABLE = "Shareable"; // NOI18N
36
public static final String JavaDoc RES_SHARING_SCOPE_UNSHAREABLE = "Unshareable"; // NOI18N
37

38         /** Setter for res-ref-name property
39          * @param value property value
40          */

41     public void setResRefName(java.lang.String JavaDoc value);
42         /** Getter for res-ref-name property.
43          * @return property value
44          */

45     public java.lang.String JavaDoc getResRefName();
46         /** Setter for res-type property
47          * @param value property value
48          */

49     public void setResType(java.lang.String JavaDoc value);
50         /** Getter for res-type property.
51          * @return property value
52          */

53     public java.lang.String JavaDoc getResType();
54         /** Setter for res-auth property
55          * @param value property value
56          */

57     public void setResAuth(java.lang.String JavaDoc value);
58         /** Getter for res-auth property.
59          * @return property value
60          */

61     public java.lang.String JavaDoc getResAuth();
62         /** Setter for res-sharing-scope property
63          * @param value property value
64          */

65     public void setResSharingScope(java.lang.String JavaDoc value);
66         /** Getter for res-sharing-scope property.
67          * @return property value
68          */

69     public java.lang.String JavaDoc getResSharingScope();
70
71         // Java EE 5
72

73         void setMappedName(String JavaDoc value) throws VersionNotSupportedException;
74         String JavaDoc getMappedName() throws VersionNotSupportedException;
75         void setInjectionTarget(int index, InjectionTarget valueInterface) throws VersionNotSupportedException;
76         InjectionTarget getInjectionTarget(int index) throws VersionNotSupportedException;
77         int sizeInjectionTarget() throws VersionNotSupportedException;
78         void setInjectionTarget(InjectionTarget[] value) throws VersionNotSupportedException;
79         InjectionTarget[] getInjectionTarget() throws VersionNotSupportedException;
80         int addInjectionTarget(InjectionTarget valueInterface) throws VersionNotSupportedException;
81         int removeInjectionTarget(InjectionTarget valueInterface) throws VersionNotSupportedException;
82         InjectionTarget newInjectionTarget() throws VersionNotSupportedException;
83
84 }
85
Popular Tags