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

📄 unregisterjobhostresponse_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 UnregisterJobHostResponse_LiteralSerializer extends LiteralObjectSerializerBase implements Initializable  {    private static final QName ns1_result_QNAME = new QName("", "result");    private static final QName ns2_boolean_TYPE_QNAME = SchemaConstants.QNAME_TYPE_BOOLEAN;    private CombinedSerializer ns2_myns2__boolean__boolean_Boolean_Serializer;        public UnregisterJobHostResponse_LiteralSerializer(QName type, String encodingStyle) {        this(type, encodingStyle, false);    }        public UnregisterJobHostResponse_LiteralSerializer(QName type, String encodingStyle, boolean encodeType) {        super(type, true, encodingStyle, encodeType);    }        public void initialize(InternalTypeMappingRegistry registry) throws Exception {        ns2_myns2__boolean__boolean_Boolean_Serializer = (CombinedSerializer)registry.getSerializer("", boolean.class, ns2_boolean_TYPE_QNAME);    }        public Object doDeserialize(XMLReader reader,        SOAPDeserializationContext context) throws Exception {        jwsgrid.ws.resourcemanager.UnregisterJobHostResponse instance = new jwsgrid.ws.resourcemanager.UnregisterJobHostResponse();        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__boolean__boolean_Boolean_Serializer.deserialize(ns1_result_QNAME, reader, context);                if (member == null) {                    throw new DeserializationException("literal.unexpectedNull");                }                instance.setResult(((Boolean)member).booleanValue());                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.UnregisterJobHostResponse instance = (jwsgrid.ws.resourcemanager.UnregisterJobHostResponse)obj;            }    public void doSerialize(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {        jwsgrid.ws.resourcemanager.UnregisterJobHostResponse instance = (jwsgrid.ws.resourcemanager.UnregisterJobHostResponse)obj;                if (new Boolean(instance.isResult()) == null) {            throw new SerializationException("literal.unexpectedNull");        }        ns2_myns2__boolean__boolean_Boolean_Serializer.serialize(new Boolean(instance.isResult()), ns1_result_QNAME, null, writer, context);    }}

⌨️ 快捷键说明

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