KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > dd > api > ejb > EjbJar


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 package org.netbeans.modules.j2ee.dd.api.ejb;
20
21 /**
22  * Generated interface for EjbJar element.<br>
23  * The EjbJar object is the root of bean graph generated<br>
24  * for deployment descriptor(ejb-jar.xml) file.<br>
25  * For getting the root (EjbJar object) use the {@link DDProvider#getDDRoot} method.
26  *
27  *<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>
28  *</p>
29  */

30 //
31
// This interface has all of the bean info accessor methods.
32
//
33
import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException;
34
35 public interface EjbJar extends org.netbeans.modules.j2ee.dd.api.common.RootInterface {
36     public static final String JavaDoc PROPERTY_VERSION="dd_version"; //NOI18N
37
public static final String JavaDoc VERSION_1_1="1.1"; //NOI18N
38
public static final String JavaDoc VERSION_2_0="2.0"; //NOI18N
39
public static final String JavaDoc VERSION_2_1="2.1"; //NOI18N
40
public static final String JavaDoc VERSION_3_0="3.0"; //NOI18N
41
public static final int STATE_VALID=0;
42     public static final int STATE_INVALID_PARSABLE=1;
43     public static final int STATE_INVALID_UNPARSABLE=2;
44     public static final String JavaDoc PROPERTY_STATUS="dd_status"; //NOI18N
45

46     public static final String JavaDoc ENTERPRISE_BEANS = "EnterpriseBeans"; // NOI18N
47
public static final String JavaDoc RELATIONSHIPS = "Relationships"; // NOI18N
48
public static final String JavaDoc ASSEMBLY_DESCRIPTOR = "AssemblyDescriptor"; // NOI18N
49
public static final String JavaDoc EJB_CLIENT_JAR = "EjbClientJar"; // NOI18N
50

51     /** Setter for version property.
52      * Warning : Only the upgrade from lower to higher version is supported.
53      * @param version ejb-jar version value
54      */

55     public void setVersion(java.math.BigDecimal JavaDoc version);
56     /** Getter for version property.
57      * @return property value
58      */

59     public java.math.BigDecimal JavaDoc getVersion();
60     /** Getter for SAX Parse Error property.
61      * Used when deployment descriptor is in invalid state.
62      * @return property value or null if in valid state
63      */

64     public org.xml.sax.SAXParseException JavaDoc getError();
65     /** Getter for status property.
66      * @return property value
67      */

68     public int getStatus();
69     
70     public void setEnterpriseBeans(EnterpriseBeans value);
71
72     public EnterpriseBeans getEnterpriseBeans();
73     
74     public EnterpriseBeans newEnterpriseBeans();
75     
76     public void setRelationships(Relationships value);
77     
78     public Relationships getSingleRelationships();
79     
80     public Relationships newRelationships();
81     
82     public void setAssemblyDescriptor(AssemblyDescriptor value);
83     
84     public AssemblyDescriptor getSingleAssemblyDescriptor();
85     
86     public AssemblyDescriptor newAssemblyDescriptor();
87     
88     public void setEjbClientJar(String JavaDoc value);
89     
90     public String JavaDoc getSingleEjbClientJar();
91
92     // EJB 3.0
93

94     void setInterceptors(Interceptors valueInterface) throws VersionNotSupportedException;
95     Interceptors getInterceptors() throws VersionNotSupportedException;
96     Interceptors newInterceptors() throws VersionNotSupportedException;
97     
98 }
99
100
Popular Tags