public class ArraySerializer extends Object implements Serializer
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
ArraySerializer(Class javaType,
QName xmlType)
Constructor
|
ArraySerializer(Class javaType,
QName xmlType,
QName componentType)
Constructor
Special constructor that takes the component type of the array.
|
ArraySerializer(Class javaType,
QName xmlType,
QName componentType,
QName componentQName)
Constructor
Special constructor that takes the component type and QName of the array.
|
| 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 an element that is an array.
|
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 ArraySerializer(Class javaType, QName xmlType, QName componentType)
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException
name - is the element nameattributes - are the attributes...serialize is free to add more.value - is the valuecontext - is the SerializationContextIOExceptionpublic String getMechanismType()
SerializergetMechanismType in interface SerializerCopyright © The Apache Software Foundation. All Rights Reserved.