public class CastorEnumTypeSerializer extends Object implements Serializer
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
CastorEnumTypeSerializer() |
Modifier and Type | Method and Description |
---|---|
String |
getMechanismType()
Gets the type of the XML processing mechanism and representation used by this Serializer.
|
void |
serialize(QName name,
Attributes attributes,
Object value,
SerializationContext context)
Serialize a Castor Enum Type object.
|
Element |
writeSchema(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.
|
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException
name
- attributes
- value
- this must be a castor object for marshallingcontext
- IOException
- for XML schema noncompliance, bad object type, and any IO
trouble.public String getMechanismType()
Serializer
getMechanismType
in interface Serializer
Copyright © The Apache Software Foundation. All Rights Reserved.