1 57 58 package org.apache.soap.encoding.soapenc; 59 60 import java.beans.*; 61 import java.io.*; 62 import java.util.*; 63 import java.lang.reflect.*; 64 import org.w3c.dom.*; 65 import org.apache.soap.util.*; 66 import org.apache.soap.util.xml.*; 67 import org.apache.soap.*; 68 import org.apache.soap.rpc.*; 69 import org.apache.soap.encoding.SOAPMappingRegistry; 70 71 79 public class UrTypeDeserializer implements Deserializer 80 { 81 public Bean unmarshall(String inScopeEncStyle, QName elementType, Node src, 82 XMLJavaMappingRegistry xjmr, SOAPContext ctx) 83 throws IllegalArgumentException 84 { 85 Element root = (Element)src; 86 87 if (!SoapEncUtils.isNull(root)) { 88 String href = root.getAttribute(Constants.ATTR_REFERENCE); 89 if (href != null && !href.equals("")) 90 return SOAPMappingRegistry.partSer.unmarshall(inScopeEncStyle, 91 elementType, 92 src, 93 xjmr, 94 ctx); 95 96 throw new IllegalArgumentException ("Can't yet deserialize non-null Objects"); 97 } 98 99 return new Bean(Object .class, null); 100 } 101 } 102 | Popular Tags |