FileDocCategorySizeDatePackage
WSDDFault.javaAPI DocApache Axis 1.43098Sat Apr 22 18:57:28 BST 2006org.apache.axis.deployment.wsdd

WSDDFault

public class WSDDFault extends WSDDElement
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
org.apache.axis.description.FaultDesc
desc
Constructors Summary
public WSDDFault(org.apache.axis.description.FaultDesc desc)

        this.desc = desc;
    
public WSDDFault(Element e)
Construct a WSDDFault from a DOM Element

param
e the <fault> Element
throws
WSDDException

        super(e);

        desc = new FaultDesc();
        
        String nameStr = e.getAttribute(ATTR_NAME);
        if (nameStr != null && !nameStr.equals(""))
            desc.setName(nameStr);

        String qNameStr = e.getAttribute(ATTR_QNAME);
        if (qNameStr != null && !qNameStr.equals(""))
            desc.setQName(XMLUtils.getQNameFromString(qNameStr, e));

        String classNameStr = e.getAttribute(ATTR_CLASS);
        if (classNameStr != null && !classNameStr.equals(""))
            desc.setClassName(classNameStr);

        String xmlTypeStr = e.getAttribute(ATTR_TYPE);
        if (xmlTypeStr != null && !xmlTypeStr.equals(""))
            desc.setXmlType(XMLUtils.getQNameFromString(xmlTypeStr, e));
    
Methods Summary
protected javax.xml.namespace.QNamegetElementName()
Return the element name of a particular subclass.

        return QNAME_FAULT;
    
public org.apache.axis.description.FaultDescgetFaultDesc()

        return desc;
    
public voidsetFaultDesc(org.apache.axis.description.FaultDesc desc)

        this.desc = desc;
    
public voidwriteToContext(org.apache.axis.encoding.SerializationContext context)
Write this element out to a SerializationContext

        AttributesImpl attrs = new AttributesImpl();

        attrs.addAttribute("", ATTR_QNAME, ATTR_QNAME,
                           "CDATA",
                           context.qName2String(desc.getQName()));

        attrs.addAttribute("", ATTR_CLASS, ATTR_CLASS,
                           "CDATA", desc.getClassName());

        attrs.addAttribute("", ATTR_TYPE, ATTR_TYPE,
                           "CDATA",
                           context.qName2String(desc.getXmlType()));

        context.startElement(getElementName(), attrs);
        context.endElement();