org.apache.axis.encoding.ser
Class EnumSerializer

java.lang.Object
  |
  +--org.apache.axis.encoding.ser.SimpleSerializer
        |
        +--org.apache.axis.encoding.ser.EnumSerializer
All Implemented Interfaces:
java.io.Serializable, Serializer, Serializer

public class EnumSerializer
extends SimpleSerializer
implements Serializer

Serializer for a JAX-RPC enum.

Author:
Rich Scheuerle , Sam Ruby
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.apache.axis.encoding.ser.SimpleSerializer
javaType, xmlType
 
Constructor Summary
EnumSerializer(java.lang.Class javaType, QName xmlType)
           
 
Method Summary
 void serialize(QName name, org.xml.sax.Attributes attributes, java.lang.Object value, SerializationContext context)
          Serialize an enumeration
 
Methods inherited from class org.apache.axis.encoding.ser.SimpleSerializer
getMechanismType, writeSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis.encoding.Serializer
writeSchema
 
Methods inherited from interface javax.xml.rpc.encoding.Serializer
getMechanismType
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

EnumSerializer

public EnumSerializer(java.lang.Class javaType,
                      QName xmlType)
Method Detail

serialize

public void serialize(QName name,
                      org.xml.sax.Attributes attributes,
                      java.lang.Object value,
                      SerializationContext context)
               throws java.io.IOException
Serialize an enumeration
Specified by:
serialize in interface Serializer
Overrides:
serialize in class SimpleSerializer
Following copied from interface: org.apache.axis.encoding.Serializer
Parameters:
name - is the element name
attributes - are the attributes...serialize is free to add more.
value - is the value
context - is the SerializationContext


Copyright © 2001 Apache XML Project. All Rights Reserved.