1 57 58 package org.apache.soap.encoding.soapenc; 59 60 import java.io.*; 61 import java.math.*; 62 import org.w3c.dom.*; 63 import org.apache.soap.util.xml.*; 64 import org.apache.soap.*; 65 import org.apache.soap.util.*; 66 import org.apache.soap.rpc.*; 67 68 77 public class DecimalDeserializer implements Deserializer { 78 public Bean unmarshall(String inScopeEncStyle, QName elementType, 79 Node src, XMLJavaMappingRegistry xjmr, 80 SOAPContext ctx) 81 throws IllegalArgumentException { 82 Element root = (Element)src; 83 String value = DOMUtils.getChildCharacterData(root); 84 return new Bean(BigDecimal.class, new BigDecimal(value)); 85 } 86 } 87 | Popular Tags |