com.gridsystems.innergrid.serializers
Class EnumSerializer
java.lang.Object
org.apache.axis.encoding.ser.SimpleSerializer
com.gridsystems.innergrid.serializers.EnumSerializer
- All Implemented Interfaces:
- java.io.Serializable, javax.xml.rpc.encoding.Serializer, org.apache.axis.encoding.SimpleValueSerializer
public class EnumSerializer
- extends org.apache.axis.encoding.ser.SimpleSerializer
Java5 Serializer.
- Author:
- Rodrigo Ruiz
- See Also:
- Serialized Form
Fields inherited from class org.apache.axis.encoding.ser.SimpleSerializer |
javaType, VALUE_PROPERTY, xmlType |
Constructor Summary |
EnumSerializer(java.lang.Class<?> javaType,
javax.xml.namespace.QName xmlType)
Creates a new instance. |
Method Summary |
java.lang.String |
getValueAsString(java.lang.Object value,
org.apache.axis.encoding.SerializationContext context)
|
void |
serialize(javax.xml.namespace.QName name,
org.xml.sax.Attributes attributes,
java.lang.Object value,
org.apache.axis.encoding.SerializationContext context)
|
org.w3c.dom.Element |
writeSchema(java.lang.Class javaType,
org.apache.axis.wsdl.fromJava.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumSerializer
public EnumSerializer(java.lang.Class<?> javaType,
javax.xml.namespace.QName xmlType)
- Creates a new instance.
- Parameters:
javaType
- Java typexmlType
- XML type
serialize
public void serialize(javax.xml.namespace.QName name,
org.xml.sax.Attributes attributes,
java.lang.Object value,
org.apache.axis.encoding.SerializationContext context)
throws java.io.IOException
-
- Overrides:
serialize
in class org.apache.axis.encoding.ser.SimpleSerializer
- Throws:
java.io.IOException
getValueAsString
public java.lang.String getValueAsString(java.lang.Object value,
org.apache.axis.encoding.SerializationContext context)
-
- Specified by:
getValueAsString
in interface org.apache.axis.encoding.SimpleValueSerializer
- Overrides:
getValueAsString
in class org.apache.axis.encoding.ser.SimpleSerializer
writeSchema
public org.w3c.dom.Element writeSchema(java.lang.Class javaType,
org.apache.axis.wsdl.fromJava.Types types)
throws java.lang.Exception
- 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.
- Overrides:
writeSchema
in class org.apache.axis.encoding.ser.SimpleSerializer
- 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:
java.lang.Exception
- See Also:
Types
Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.