KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > myeis > j2c > importservice > myeis > myeis > PortTypeArrayFormatHandler


1 /*
2  * The Apache Software License, Version 1.1
3  *
4  *
5  * Copyright (c) 2002 The Apache Software Foundation. All rights
6  * reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * 1. Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  *
15  * 2. Redistributions in binary form must reproduce the above copyright
16  * notice, this list of conditions and the following disclaimer in
17  * the documentation and/or other materials provided with the
18  * distribution.
19  *
20  * 3. The end-user documentation included with the redistribution,
21  * if any, must include the following acknowledgment:
22  * "This product includes software developed by the
23  * Apache Software Foundation (http://www.apache.org/)."
24  * Alternately, this acknowledgment may appear in the software itself,
25  * if and wherever such third-party acknowledgments normally appear.
26  *
27  * 4. The names "WSIF" and "Apache Software Foundation" must
28  * not be used to endorse or promote products derived from this
29  * software without prior written permission. For written
30  * permission, please contact apache@apache.org.
31  *
32  * 5. Products derived from this software may not be called "Apache",
33  * nor may "Apache" appear in their name, without prior written
34  * permission of the Apache Software Foundation.
35  *
36  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
37  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
38  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
40  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
43  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
46  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
47  * SUCH DAMAGE.
48  * ====================================================================
49  *
50  * This software consists of voluntary contributions made by many
51  * individuals on behalf of the Apache Software Foundation and was
52  * originally based on software copyright (c) 2001, 2002, International
53  * Business Machines, Inc., http://www.apache.org. For more
54  * information on the Apache Software Foundation, please see
55  * <http://www.apache.org/>.
56  */

57 package com.myeis.j2c.importservice.myeis.myeis;
58
59 import java.io.*;
60
61 import javax.resource.cci.InteractionSpec JavaDoc;
62
63 import org.apache.wsif.providers.jca.toolplugin.*;
64 import org.apache.wsif.providers.jca.WSIFFormatHandler_JCA;
65
66 public class PortTypeArrayFormatHandler implements WSIFFormatHandler_JCA {
67
68     private PortTypeArray fieldPortTypeArray = null;
69     
70     /**
71      * @see JCAFormatHandler#read(InputStream)
72      */

73     public void read(InputStream inputStream) throws IOException {
74     
75         try {
76             ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
77             this.fieldPortTypeArray =
78                 (PortTypeArray)objectInputStream.readObject();
79         } catch (ClassNotFoundException JavaDoc e) {
80             e.printStackTrace();
81             throw new IOException("class not found !");
82         }
83     }
84
85     /**
86      * @see JCAFormatHandler#write(OutputStream)
87      */

88     public void write(OutputStream outputStream) throws IOException {
89         
90         ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);
91         objectOutputStream.writeObject(this.fieldPortTypeArray);
92         objectOutputStream.flush();
93     }
94
95     /**
96      * @see WSIFFormatHandler#getElement(String)
97      */

98     public Object JavaDoc getElement(String JavaDoc elementName) {
99         return null;
100     }
101
102     /**
103      * @see WSIFFormatHandler#setElement(String, Object)
104      */

105     public void setElement(String JavaDoc elementName, Object JavaDoc element) {
106     }
107
108     /**
109      * @see WSIFFormatHandler#getElement(String, int)
110      */

111     public Object JavaDoc getElement(String JavaDoc name, int index) {
112         return null;
113     }
114
115     /**
116      * @see WSIFFormatHandler#setElement(String, int, Object)
117      */

118     public void setElement(String JavaDoc name, int index, Object JavaDoc value) {
119     }
120
121     /**
122      * @see WSIFFormatHandler#getObjectPart()
123      */

124     public Object JavaDoc getObjectPart() {
125         return this.fieldPortTypeArray;
126     }
127
128     /**
129      * @see WSIFFormatHandler#getObjectPart(Class)
130      */

131     public Object JavaDoc getObjectPart(Class JavaDoc sourceClass) {
132         return null;
133     }
134
135     /**
136      * @see WSIFFormatHandler#getCharPart()
137      */

138     public char getCharPart() {
139         return 0;
140     }
141
142     /**
143      * @see WSIFFormatHandler#getBytePart()
144      */

145     public byte getBytePart() {
146         return 0;
147     }
148
149     /**
150      * @see WSIFFormatHandler#getShortPart()
151      */

152     public short getShortPart() {
153         return 0;
154     }
155
156     /**
157      * @see WSIFFormatHandler#getIntPart()
158      */

159     public int getIntPart() {
160         return 0;
161     }
162
163     /**
164      * @see WSIFFormatHandler#getLongPart()
165      */

166     public long getLongPart() {
167         return 0;
168     }
169
170     /**
171      * @see WSIFFormatHandler#getFloatPart()
172      */

173     public float getFloatPart() {
174         return 0;
175     }
176
177     /**
178      * @see WSIFFormatHandler#getDoublePart()
179      */

180     public double getDoublePart() {
181         return 0;
182     }
183
184     /**
185      * @see WSIFFormatHandler#setObjectPart(Object)
186      */

187     public void setObjectPart(Object JavaDoc objectPart) {
188         this.fieldPortTypeArray = (PortTypeArray) objectPart;
189     }
190
191     /**
192      * @see WSIFFormatHandler#setCharPart(char)
193      */

194     public void setCharPart(char charPart) {
195     }
196
197     /**
198      * @see WSIFFormatHandler#setBytePart(byte)
199      */

200     public void setBytePart(byte bytePart) {
201     }
202
203     /**
204      * @see WSIFFormatHandler#setShortPart(short)
205      */

206     public void setShortPart(short shortPart) {
207     }
208
209     /**
210      * @see WSIFFormatHandler#setIntPart(int)
211      */

212     public void setIntPart(int intPart) {
213     }
214
215     /**
216      * @see WSIFFormatHandler#setLongPart(long)
217      */

218     public void setLongPart(long longPart) {
219     }
220
221     /**
222      * @see WSIFFormatHandler#setFloatPart(float)
223      */

224     public void setFloatPart(float floatPart) {
225     }
226
227     /**
228      * @see WSIFFormatHandler#setDoublePart(double)
229      */

230     public void setDoublePart(double doublePart) {
231     }
232     
233     public void setPartQName(javax.xml.namespace.QName JavaDoc qname){
234     }
235     
236     public javax.xml.namespace.QName JavaDoc getPartQName(){
237         return null;
238     }
239     public void setInteractionSpec(InteractionSpec JavaDoc is){
240         
241     }
242
243 }
244
245
Popular Tags