BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.xml.schema.binding
Interface Serializer

All Known Implementing Classes:
AbstractCodec

public interface Serializer
extends javax.xml.rpc.encoding.Serializer, javax.xml.rpc.encoding.SerializerFactory

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

Author:
Copyright © 2004 BEA Systems, Inc. All Rights Reserved.

Method Summary
 void serialize(java.lang.Object obj, XMLName name, XMLOutputStream writer, weblogic.xml.schema.binding.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

public void serialize(java.lang.Object obj,
                      XMLName name,
                      XMLOutputStream writer,
                      weblogic.xml.schema.binding.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.


Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81