1 55 package org.jboss.axis.deployment.wsdd; 56 57 import org.jboss.axis.encoding.SerializationContext; 58 import org.w3c.dom.Element ; 59 import org.xml.sax.helpers.AttributesImpl ; 60 61 import javax.xml.namespace.QName ; 62 import java.io.IOException ; 63 64 65 76 public class WSDDBeanMapping 77 extends WSDDTypeMapping 78 { 79 82 public WSDDBeanMapping() 83 { 84 } 85 86 public WSDDBeanMapping(Element e) 87 throws WSDDException 88 { 89 super(e); 90 91 serializer = BEAN_SERIALIZER_FACTORY; 92 deserializer = BEAN_DESERIALIZER_FACTORY; 93 encodingStyle = null; 94 } 95 96 protected QName getElementName() 97 { 98 return QNAME_BEANMAPPING; 99 } 100 101 public void writeToContext(SerializationContext context) throws IOException 102 { 103 AttributesImpl attrs = new AttributesImpl (); 104 105 String typeStr = context.qName2String(typeQName); 106 attrs.addAttribute("", ATTR_LANG_SPEC_TYPE, 107 ATTR_LANG_SPEC_TYPE, "CDATA", typeStr); 108 109 String qnameStr = context.qName2String(qname); 110 attrs.addAttribute("", ATTR_QNAME, ATTR_QNAME, "CDATA", qnameStr); 111 112 context.startElement(WSDDConstants.QNAME_BEANMAPPING, attrs); 113 context.endElement(); 114 } 115 } 116 117 118 119 | Popular Tags |