org.apache.axis.encoding.ser

Class ArraySerializer

public class ArraySerializer extends Object implements Serializer

An ArraySerializer handles serializing of arrays. Some code borrowed from ApacheSOAP - thanks to Matt Duftler!

Author: Glen Daniels (gdaniels@apache.org) Multi-reference stuff: Rich Scheuerle (scheu@us.ibm.com)

Field Summary
protected static Loglog
Constructor Summary
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.
Method Summary
StringgetMechanismType()
voidserialize(QName name, Attributes attributes, Object value, SerializationContext context)
Serialize an element that is an array.
ElementwriteSchema(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.

Field Detail

log

protected static Log log

Constructor Detail

ArraySerializer

public ArraySerializer(Class javaType, QName xmlType)
Constructor

ArraySerializer

public ArraySerializer(Class javaType, QName xmlType, QName componentType)
Constructor Special constructor that takes the component type of the array.

ArraySerializer

public ArraySerializer(Class javaType, QName xmlType, QName componentType, QName componentQName)
Constructor Special constructor that takes the component type and QName of the array.

Method Detail

getMechanismType

public String getMechanismType()

serialize

public void serialize(QName name, Attributes attributes, Object value, SerializationContext context)
Serialize an element that is an array.

Parameters: name is the element name attributes are the attributes...serialize is free to add more. value is the value context is the SerializationContext

writeSchema

public 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.

Parameters: javaType the Java Class we're writing out schema for types the Java2WSDL Types object which holds the context for the WSDL being generated.

Returns: a type element containing a schema simpleType/complexType

See Also: Types

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.