BEA Systems, Inc.

weblogic.xml.schema.binding
Interface Serializer

All Superinterfaces:
Serializable, Serializer, SerializerFactory

public interface Serializer
extends Serializer, SerializerFactory

A Serialzer is responsible for taking a java Object and writing a xml instance of some Schema Type.


Method Summary
 void serialize(Object obj, weblogic.xml.stream.XMLName name, weblogic.xml.stream.XMLOutputStream writer, SerializationContext context)
          Write the given Object to an XMLOutputSteam, using the information described in the mapping, using the name parameter as the name of the resulting element.
 
Methods inherited from interface javax.xml.rpc.encoding.Serializer
getMechanismType
 
Methods inherited from interface javax.xml.rpc.encoding.SerializerFactory
getSerializerAs, getSupportedMechanismTypes
 

Method Detail

serialize

void serialize(Object obj,
               weblogic.xml.stream.XMLName name,
               weblogic.xml.stream.XMLOutputStream writer,
               SerializationContext context)
               throws SerializationException
Write the given Object to an XMLOutputSteam, using the information described in the mapping, using the name parameter as the name of the resulting element. This allows using a general Class <-> ComplexType mapping with full control over the name of the xml element to be written.

Throws:
SerializationException

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs100
Copyright 2006 BEA Systems Inc.