// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1, build EA-R39)

package com.agiledeveloper.ws;

import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;

public class InformationProviderIF_getRecord_ResponseStruct_SOAPBuilder implements SOAPInstanceBuilder {
    private com.agiledeveloper.ws.InformationProviderIF_getRecord_ResponseStruct _instance;
    private java.lang.String result;
    private static final int myRESULT_INDEX = 0;
    
    public InformationProviderIF_getRecord_ResponseStruct_SOAPBuilder() {
    }
    
    public void setResult(java.lang.String result) {
        this.result = result;
    }
    
    public int memberGateType(int memberIndex) {
        switch (memberIndex) {
            case myRESULT_INDEX:
                return GATES_INITIALIZATION | REQUIRES_CREATION;
            default:
                throw new IllegalArgumentException();
        }
    }
    
    public void construct() {
    }
    
    public void setMember(int index, Object memberValue) {
        try {
            switch(index) {
                case myRESULT_INDEX:
                    _instance.setResult((java.lang.String)memberValue);
                    break;
                default:
                    throw new IllegalArgumentException();
            }
        }
        catch (RuntimeException e) {
            throw e;
        }
        catch (Exception e) {
            throw new DeserializationException(new LocalizableExceptionAdapter(e));
        }
    }
    
    public void initialize() {
    }
    
    public void setInstance(Object instance) {
        _instance = (com.agiledeveloper.ws.InformationProviderIF_getRecord_ResponseStruct)instance;
    }
    
    public Object getInstance() {
        return _instance;
    }
}
