1 29 30 package com.caucho.soap.skeleton; 31 32 import com.caucho.jaxb.skeleton.Property; 33 import com.caucho.util.L10N; 34 35 import javax.xml.bind.JAXBException; 36 import javax.xml.bind.Marshaller; 37 import javax.xml.bind.Unmarshaller; 38 import javax.xml.namespace.QName ; 39 import javax.xml.stream.XMLStreamException; 40 import javax.xml.stream.XMLStreamReader; 41 import javax.xml.stream.XMLStreamWriter; 42 import java.io.IOException ; 43 44 public class InParameterMarshal extends ParameterMarshal { 45 public static final L10N L = new L10N(InParameterMarshal.class); 46 47 public InParameterMarshal(int arg, Property property, QName name, 48 Marshaller marshaller, Unmarshaller unmarshaller) 49 { 50 super(arg, property, name, marshaller, unmarshaller); 51 } 52 53 57 public void serializeCall(XMLStreamWriter out, Object []args) 58 throws IOException , XMLStreamException, JAXBException 59 { 60 _property.write(_marshaller, out, args[_arg], _name); 61 } 62 63 67 public void deserializeCall(XMLStreamReader in, Object []args) 68 throws IOException , XMLStreamException, JAXBException 69 { 70 args[_arg] = _property.read(_unmarshaller, in, _name); 71 } 72 } 73 | Popular Tags |