⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pingresponse_literalserializer.java

📁 这是一个基于计算网格的web service。它用java编写。一旦安装完成
💻 JAVA
字号:
// This class was generated by the JAXRPC SI, do not edit.// Contents subject to change without notice.// JAX-RPC Standard Implementation (1.1.2_02, build R41)// Generated source version: 1.1.2package jwsgrid.ws.resourcemanager;import com.sun.xml.rpc.encoding.*;import com.sun.xml.rpc.encoding.xsd.XSDConstants;import com.sun.xml.rpc.encoding.literal.*;import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;import com.sun.xml.rpc.encoding.simpletype.*;import com.sun.xml.rpc.encoding.soap.SOAPConstants;import com.sun.xml.rpc.encoding.soap.SOAP12Constants;import com.sun.xml.rpc.streaming.*;import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;import javax.xml.namespace.QName;import java.util.List;import java.util.ArrayList;public class PingResponse_LiteralSerializer extends LiteralObjectSerializerBase implements Initializable  {    private static final QName ns1_result_QNAME = new QName("", "result");    private static final QName ns2_long_TYPE_QNAME = SchemaConstants.QNAME_TYPE_LONG;    private CombinedSerializer ns2_myns2__long__long_Long_Serializer;        public PingResponse_LiteralSerializer(QName type, String encodingStyle) {        this(type, encodingStyle, false);    }        public PingResponse_LiteralSerializer(QName type, String encodingStyle, boolean encodeType) {        super(type, true, encodingStyle, encodeType);    }        public void initialize(InternalTypeMappingRegistry registry) throws Exception {        ns2_myns2__long__long_Long_Serializer = (CombinedSerializer)registry.getSerializer("", long.class, ns2_long_TYPE_QNAME);    }        public Object doDeserialize(XMLReader reader,        SOAPDeserializationContext context) throws Exception {        jwsgrid.ws.resourcemanager.PingResponse instance = new jwsgrid.ws.resourcemanager.PingResponse();        Object member=null;        QName elementName;        List values;        Object value;                reader.nextElementContent();        elementName = reader.getName();        if (reader.getState() == XMLReader.START) {            if (elementName.equals(ns1_result_QNAME)) {                member = ns2_myns2__long__long_Long_Serializer.deserialize(ns1_result_QNAME, reader, context);                if (member == null) {                    throw new DeserializationException("literal.unexpectedNull");                }                instance.setResult(((Long)member).longValue());                reader.nextElementContent();            } else {                throw new DeserializationException("literal.unexpectedElementName", new Object[] { ns1_result_QNAME, reader.getName() });            }        }        else {            throw new DeserializationException("literal.expectedElementName", reader.getName().toString());        }                XMLReaderUtil.verifyReaderState(reader, XMLReader.END);        return (Object)instance;    }        public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {        jwsgrid.ws.resourcemanager.PingResponse instance = (jwsgrid.ws.resourcemanager.PingResponse)obj;            }    public void doSerialize(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {        jwsgrid.ws.resourcemanager.PingResponse instance = (jwsgrid.ws.resourcemanager.PingResponse)obj;                if (new Long(instance.getResult()) == null) {            throw new SerializationException("literal.unexpectedNull");        }        ns2_myns2__long__long_Long_Serializer.serialize(new Long(instance.getResult()), ns1_result_QNAME, null, writer, context);    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -