FileDocCategorySizeDatePackage
EnumDeserializer.javaAPI DocApache Axis 1.41807Sat Apr 22 18:57:26 BST 2006org.apache.axis.encoding.ser

EnumDeserializer

public class EnumDeserializer extends SimpleDeserializer
Deserializer for a JAX-RPC enum.
author
Rich Scheuerle
author
Sam Ruby

Fields Summary
private Method
fromStringMethod
private static final Class[]
STRING_CLASS
Constructors Summary
public EnumDeserializer(Class javaType, QName xmlType)


         
        super(javaType, xmlType);
    
Methods Summary
public java.lang.ObjectmakeValue(java.lang.String source)

        // Invoke the fromString static method to get the Enumeration value
        if (isNil)
            return null;
        if (fromStringMethod == null) {
            try {
                fromStringMethod = MethodCache.getInstance().getMethod(javaType, "fromString", STRING_CLASS);
            } catch (Exception e) {
                throw new IntrospectionException(e.toString());
            }
        }
        return fromStringMethod.invoke(null,new Object [] { source });