1 57 58 package org.apache.wsif.providers.jca.toolplugin.myeis.myeis; 59 60 import java.io.*; 61 62 import javax.resource.cci.InteractionSpec ; 63 64 import org.apache.wsif.providers.jca.toolplugin.*; 65 import org.apache.wsif.providers.jca.WSIFFormatHandler_JCA; 66 67 public class PortTypeSelectionFormatHandler implements WSIFFormatHandler_JCA { 68 69 private PortTypeSelection fieldPortTypeSelection = null; 70 71 74 public void read(InputStream inputStream) throws IOException { 75 76 try { 77 ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); 78 this.fieldPortTypeSelection = 79 (PortTypeSelection) objectInputStream.readObject(); 80 } catch (ClassNotFoundException e) { 81 e.printStackTrace(); 82 throw new IOException("class not found !"); 83 } 84 } 85 86 89 public void write(OutputStream outputStream) throws IOException { 90 91 ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream); 92 objectOutputStream.writeObject(this.fieldPortTypeSelection); 93 objectOutputStream.flush(); 94 } 95 96 99 public Object getElement(String elementName) { 100 return null; 101 } 102 103 106 public void setElement(String elementName, Object element) { 107 } 108 109 112 public Object getElement(String name, int index) { 113 return null; 114 } 115 116 119 public void setElement(String name, int index, Object value) { 120 } 121 122 125 public Object getObjectPart() { 126 return this.fieldPortTypeSelection; 127 } 128 129 132 public Object getObjectPart(Class sourceClass) { 133 return null; 134 } 135 136 139 public char getCharPart() { 140 return 0; 141 } 142 143 146 public byte getBytePart() { 147 return 0; 148 } 149 150 153 public short getShortPart() { 154 return 0; 155 } 156 157 160 public int getIntPart() { 161 return 0; 162 } 163 164 167 public long getLongPart() { 168 return 0; 169 } 170 171 174 public float getFloatPart() { 175 return 0; 176 } 177 178 181 public double getDoublePart() { 182 return 0; 183 } 184 185 188 public void setObjectPart(Object objectPart) { 189 this.fieldPortTypeSelection = (PortTypeSelection) objectPart; 190 } 191 192 195 public void setCharPart(char charPart) { 196 } 197 198 201 public void setBytePart(byte bytePart) { 202 } 203 204 207 public void setShortPart(short shortPart) { 208 } 209 210 213 public void setIntPart(int intPart) { 214 } 215 216 219 public void setLongPart(long longPart) { 220 } 221 222 225 public void setFloatPart(float floatPart) { 226 } 227 228 231 public void setDoublePart(double doublePart) { 232 } 233 public void setPartQName(javax.xml.namespace.QName qname){ 234 } 235 236 public javax.xml.namespace.QName getPartQName(){ 237 return null; 238 } 239 public void setInteractionSpec(InteractionSpec is){ 240 241 } 242 243 } | Popular Tags |