org.apache.axis.encoding.ser.castor
Class CastorEnumTypeSerializer
java.lang.Object
org.apache.axis.encoding.ser.castor.CastorEnumTypeSerializer
- All Implemented Interfaces:
- Serializable, Serializer
public class CastorEnumTypeSerializer
- extends Object
- implements Serializer
Castor serializer
- Version:
- 1.0
- Author:
- Ozzie Gurkan
- See Also:
- Serialized Form
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
CastorEnumTypeSerializer
public CastorEnumTypeSerializer()
serialize
public void serialize(QName name,
Attributes attributes,
Object value,
SerializationContext context)
throws IOException
- Serialize a Castor Enum Type object.
- Parameters:
name - attributes - value - this must be a castor object for marshallingcontext -
- Throws:
IOException - for XML schema noncompliance, bad object type, and any IO
trouble.
getMechanismType
public String getMechanismType()
- Description copied from interface:
Serializer
- Gets the type of the XML processing mechanism and representation used by this Serializer.
- Specified by:
getMechanismType in interface Serializer
- Returns:
- XML processing mechanism type
writeSchema
public Element writeSchema(Class javaType,
Types types)
throws 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.
- 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:
Types
Copyright © The Apache Software Foundation. All Rights Reserved.