FileDocCategorySizeDatePackage
WSDDBeanMapping.javaAPI DocApache Axis 1.42267Sat Apr 22 18:57:26 BST 2006org.apache.axis.deployment.wsdd

WSDDBeanMapping

public class WSDDBeanMapping extends WSDDTypeMapping
A WSDDBeanMapping is simply a WSDDTypeMapping which has preset values for the serializer and deserializer attributes. This enables the following slightly simplified syntax when expressing a bean mapping: <beanMapping qname="prefix:local" languageSpecificType="java:class"/>
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
Constructors Summary
public WSDDBeanMapping()
Default constructor

    
public WSDDBeanMapping(Element e)

        super(e);
        
        serializer = BEAN_SERIALIZER_FACTORY;
        deserializer = BEAN_DESERIALIZER_FACTORY;
        encodingStyle = null;
    
Methods Summary
protected javax.xml.namespace.QNamegetElementName()

        return QNAME_BEANMAPPING;
    
public voidwriteToContext(org.apache.axis.encoding.SerializationContext context)

        AttributesImpl attrs = new AttributesImpl();

        String typeStr = context.qName2String(typeQName);
        attrs.addAttribute("", ATTR_LANG_SPEC_TYPE, 
                           ATTR_LANG_SPEC_TYPE, "CDATA", typeStr);

        String qnameStr = context.qName2String(qname);
        attrs.addAttribute("", ATTR_QNAME, ATTR_QNAME, "CDATA", qnameStr);

        context.startElement(WSDDConstants.QNAME_BEANMAPPING, attrs);
        context.endElement();