Package 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:
Serializable,Serializer,Serializer,SimpleValueSerializer
Serializer for a JAX-RPC enum.
- Author:
- Rich Scheuerle invalid input: '<'scheu@us.ibm.com>, Sam Ruby invalid input: '<'rubys@us.ibm.com>
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.axis.encoding.ser.SimpleSerializer
javaType, VALUE_PROPERTY, xmlType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValueAsString(Object value, SerializationContext context) Return an XML compatible representation of the value.voidserialize(QName name, Attributes attributes, Object value, SerializationContext context) Serialize an enumerationwriteSchema(Class javaType, Types types) Return XML schema for the specified type, suitable for insertion into the <types> element of a WSDL document, or underneath an <element> or <attribute> declaration.Methods inherited from class org.apache.axis.encoding.ser.SimpleSerializer
getMechanismType
-
Field Details
-
log
protected static org.apache.commons.logging.Log log
-
-
Constructor Details
-
EnumSerializer
-
-
Method Details
-
serialize
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException Serialize an enumeration- Specified by:
serializein interfaceSerializer- Overrides:
serializein classSimpleSerializer- Parameters:
name- is the element nameattributes- are the attributes...serialize is free to add more.value- is the valuecontext- is the SerializationContext- Throws:
IOException
-
getValueAsString
Description copied from interface:SimpleValueSerializerReturn an XML compatible representation of the value.- Specified by:
getValueAsStringin interfaceSimpleValueSerializer- Overrides:
getValueAsStringin classSimpleSerializer- Parameters:
value-- Returns:
-
writeSchema
Return XML schema for the specified type, suitable for insertion into the <types> element of a WSDL document, or underneath an <element> or <attribute> declaration.- Specified by:
writeSchemain interfaceSerializer- Overrides:
writeSchemain classSimpleSerializer- Parameters:
javaType- the Java Class we're writing out schema fortypes- the Java2WSDL Types object which holds the context for the WSDL being generated.- Returns:
- a type element containing a schema simpleType/complexType
- Throws:
Exception- See Also:
-