FileDocCategorySizeDatePackage
SOAPFaultReasonBuilder.javaAPI DocApache Axis 1.42754Sat Apr 22 18:57:28 BST 2006org.apache.axis.message

SOAPFaultReasonBuilder

public class SOAPFaultReasonBuilder extends SOAPHandler implements org.apache.axis.encoding.Callback
Parser for the fault Reason element and its associated Text elements.
author
Glen Daniels (gdaniels@apache.org)

Fields Summary
private ArrayList
text
Storage for the actual text
private SOAPFaultBuilder
faultBuilder
Constructors Summary
public SOAPFaultReasonBuilder(SOAPFaultBuilder faultBuilder)

    
       
        this.faultBuilder = faultBuilder;
    
Methods Summary
public java.util.ArrayListgetText()

        return text;
    
public SOAPHandleronStartChild(java.lang.String namespace, java.lang.String name, java.lang.String prefix, org.xml.sax.Attributes attributes, org.apache.axis.encoding.DeserializationContext context)

        QName thisQName = new QName(namespace, name);
        if (thisQName.equals(Constants.QNAME_TEXT_SOAP12)) {
            Deserializer currentDeser = null;
            currentDeser = context.getDeserializerForType(Constants.XSD_STRING);
            if (currentDeser != null) {
                currentDeser.registerValueTarget(
                        new CallbackTarget(faultBuilder, thisQName));
            }
            return (SOAPHandler)currentDeser;
        } else {
            return null;
        }
    
public voidsetValue(java.lang.Object value, java.lang.Object hint)
Defined by Callback. This method gets control when the callback is invoked, which happens each time we get a deserialized Text string.

param
value the deserialized value
param
hint (unused) provides additional hint information.

        text.add(value);