KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Generated interface for ServiceRef element.
23  *
24  *<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>
25  *</p>
26  */

27 public interface ServiceRef extends ComponentInterface {
28
29         public static final String JavaDoc SERVICE_REF_NAME = "ServiceRefName"; // NOI18N
30
public static final String JavaDoc SERVICE_INTERFACE = "ServiceInterface"; // NOI18N
31
public static final String JavaDoc WSDL_FILE = "WsdlFile"; // NOI18N
32
public static final String JavaDoc JAXRPC_MAPPING_FILE = "JaxrpcMappingFile"; // NOI18N
33
public static final String JavaDoc SERVICE_QNAME = "ServiceQname"; // NOI18N
34
public static final String JavaDoc PORT_COMPONENT_REF = "PortComponentRef"; // NOI18N
35
public static final String JavaDoc HANDLER = "Handler"; // NOI18N
36
/** Setter for service-ref-name property.
37          * @param value property value
38          */

39     public void setServiceRefName(String JavaDoc value);
40         /** Getter for service-ref-name property.
41          * @return property value
42          */

43     public String JavaDoc getServiceRefName();
44         /** Setter for service-interface property.
45          * @param value property value
46          */

47     public void setServiceInterface(String JavaDoc value);
48         /** Getter for service-interface property.
49          * @return property value
50          */

51     public String JavaDoc getServiceInterface();
52         /** Setter for wsdl-file property.
53          * @param value property value
54          */

55     public void setWsdlFile(java.net.URI JavaDoc value);
56         /** Getter for wsdl-file property.
57          * @return property value
58          */

59     public java.net.URI JavaDoc getWsdlFile();
60         /** Setter for jaxrpc-mapping-file property.
61          * @param value property value
62          */

63     public void setJaxrpcMappingFile(String JavaDoc value);
64         /** Getter for jaxrpc-mapping-file property.
65          * @return property value
66          */

67     public String JavaDoc getJaxrpcMappingFile();
68         /** Setter for service-qname property.
69          * @param value property value
70          */

71     public void setServiceQname(String JavaDoc value);
72         /** Getter for service-qname property.
73          * @return property value
74          */

75     public String JavaDoc getServiceQname();
76         /** Setter for port-component-ref element.
77          * @param index position in the array of elements
78          * @param valueInterface port-component-ref element (PortComponentRef object)
79          */

80     public void setPortComponentRef(int index, PortComponentRef valueInterface);
81         /** Getter for port-component-ref element.
82          * @param index position in the array of elements
83          * @return port-component-ref element (PortComponentRef object)
84          */

85     public PortComponentRef getPortComponentRef(int index);
86         /** Setter for port-component-ref elements.
87          * @param value array of port-component-ref elements (PortComponentRef objects)
88          */

89     public void setPortComponentRef(PortComponentRef[] value);
90         /** Getter for port-component-ref elements.
91          * @return array of port-component-ref elements (PortComponentRef objects)
92          */

93     public PortComponentRef[] getPortComponentRef();
94         /** Returns size of port-component-ref elements.
95          * @return number of port-component-ref elements
96          */

97     public int sizePortComponentRef();
98         /** Adds port-component-ref element.
99          * @param valueInterface port-component-ref element (PortComponentRef object)
100          * @return index of new port-component-ref
101          */

102     public int addPortComponentRef(PortComponentRef valueInterface);
103         /** Removes port-component-ref element.
104          * @param valueInterface port-component-ref element (PortComponentRef object)
105          * @return index of the removed port-component-ref
106          */

107     public int removePortComponentRef(PortComponentRef valueInterface);
108         /** Setter for handler element.
109          * @param index position in the array of elements
110          * @param valueInterface handler element (SeviceRefHandler object)
111          */

112     public void setHandler(int index, ServiceRefHandler valueInterface);
113         /** Getter for handler element.
114          * @param index position in the array of elements
115          * @return handler element (SeviceRefHandler object)
116          */

117     public ServiceRefHandler getHandler(int index);
118         /** Setter for handler elements.
119          * @param value array of handler elements (SeviceRefHandler objects)
120          */

121     public void setHandler(ServiceRefHandler[] value);
122         /** Getter for handler elements.
123          * @return array of handler elements (SeviceRefHandler objects)
124          */

125     public ServiceRefHandler[] getHandler();
126         /** Returns size of handler elements.
127          * @return number of handler elements
128          */

129     public int sizeHandler();
130         /** Adds handler element.
131          * @param valueInterface handler element (SeviceRefHandler object)
132          * @return index of new handler
133          */

134     public int addHandler(ServiceRefHandler valueInterface);
135         /** Removes handler element.
136          * @param valueInterface handler element (SeviceRefHandler object)
137          * @return index of the removed handler
138          */

139     public int removeHandler(ServiceRefHandler valueInterface);
140
141         // Java EE 5
142

143     void setMappedName(String JavaDoc value) throws VersionNotSupportedException;
144     String JavaDoc getMappedName() throws VersionNotSupportedException;
145     void setHandlerChains(ServiceRefHandlerChains valueInterface) throws VersionNotSupportedException;
146     ServiceRefHandlerChains getHandlerChains() throws VersionNotSupportedException;
147     PortComponentRef newPortComponentRef() throws VersionNotSupportedException;
148     ServiceRefHandler newServiceRefHandler() throws VersionNotSupportedException;
149     ServiceRefHandlerChains newServiceRefHandlerChains() throws VersionNotSupportedException;
150
151 }
Popular Tags