KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > sun > dd > api > app > SunApplication


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  * SunApplication.java
21  *
22  * Created on November 21, 2004, 12:47 AM
23  */

24
25 package org.netbeans.modules.j2ee.sun.dd.api.app;
26
27 import org.netbeans.modules.j2ee.sun.dd.api.common.SecurityRoleMapping;
28
29 public interface SunApplication extends org.netbeans.modules.j2ee.sun.dd.api.RootInterface {
30
31         public static final String JavaDoc VERSION_5_0_0 = "5.00"; //NOI18N
32
public static final String JavaDoc VERSION_1_4_0 = "1.40"; //NOI18N
33
public static final String JavaDoc VERSION_1_3_0 = "1.30"; //NOI18N
34

35         public static final String JavaDoc WEB = "Web"; // NOI18N
36
public static final String JavaDoc PASS_BY_REFERENCE = "PassByReference"; // NOI18N
37
public static final String JavaDoc UNIQUE_ID = "UniqueId"; // NOI18N
38
public static final String JavaDoc SECURITY_ROLE_MAPPING = "SecurityRoleMapping"; // NOI18N
39
public static final String JavaDoc REALM = "Realm"; // NOI18N
40

41     public void setWeb(int index, Web value);
42     public Web getWeb(int index);
43     public int sizeWeb();
44     public void setWeb(Web[] value);
45     public Web[] getWeb();
46     public int addWeb(org.netbeans.modules.j2ee.sun.dd.api.app.Web value);
47     public int removeWeb(org.netbeans.modules.j2ee.sun.dd.api.app.Web value);
48     public Web newWeb();
49
50         /** Setter for pass-by-reference property
51         * @param value property value
52         */

53     public void setPassByReference(String JavaDoc value);
54         /** Getter for pass-by-reference property.
55         * @return property value
56         */

57     public String JavaDoc getPassByReference();
58         /** Setter for unique-id property
59         * @param value property value
60         */

61     public void setUniqueId(String JavaDoc value);
62         /** Getter for unique-id property.
63         * @return property value
64         */

65     public String JavaDoc getUniqueId();
66
67     public void setSecurityRoleMapping(int index, SecurityRoleMapping value);
68     public SecurityRoleMapping getSecurityRoleMapping(int index);
69     public int sizeSecurityRoleMapping();
70     public void setSecurityRoleMapping(SecurityRoleMapping[] value);
71     public SecurityRoleMapping[] getSecurityRoleMapping();
72     public int addSecurityRoleMapping(SecurityRoleMapping value);
73     public int removeSecurityRoleMapping(SecurityRoleMapping value);
74     public SecurityRoleMapping newSecurityRoleMapping();
75
76         /** Setter for realm property
77         * @param value property value
78         */

79     public void setRealm(String JavaDoc value);
80         /** Getter for realm property.
81         * @return property value
82         */

83     public String JavaDoc getRealm();
84
85 }
86
Popular Tags