WebObjects 5.2.2

com.webobjects.webservices.support.xml
Class WOEnterpriseObjectSerializer

java.lang.Object
  |
  +--com.webobjects.webservices.support.xml.WOEnterpriseObjectSerializer
All Implemented Interfaces:
WOSoapConstants

public class WOEnterpriseObjectSerializer
extends Object
implements WOSoapConstants

WOEnterpriseObjectSerializer serializes objects implementing the EOEnterpriseObject interface.


Nested Class Summary
 
Nested classes inherited from class com.webobjects.webservices.support.xml.WOSoapConstants
WOSoapConstants.WOXMLAttributes
 
Field Summary
 
Fields inherited from interface com.webobjects.webservices.support.xml.WOSoapConstants
EOENTERPRISEOBJECT_QNAME, EOGLOBALID_QNAME, NSKVCNULL_QNAME, NSRANGE_QNAME, NSTIMESTAMP_QNAME, NSTIMEZONE_QNAME, SOAP_ENC_PREFIX, SOAP_URI, WOSOAP_URI, WOSTRINGKEYMAP_QNAME, XSD_URI, XSI_TYPE, XSI_URI
 
Constructor Summary
WOEnterpriseObjectSerializer()
           
 
Method Summary
 String getMechanismType()
           
 void serialize(QName name, Attributes attributes, Object value, SerializationContext context)
          Serialize a value implementing EOEnterpriseObject into an element named name, with the indicated attributes.
 boolean writeSchema(Types types)
          Return XML schema for the specified type, suitable for insertion into the element of a WSDL document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOEnterpriseObjectSerializer

public WOEnterpriseObjectSerializer()
Method Detail

getMechanismType

public String getMechanismType()

serialize

public void serialize(QName name,
                      Attributes attributes,
                      Object value,
                      SerializationContext context)
               throws IOException
Serialize a value implementing EOEnterpriseObject into an element named name, with the indicated attributes. Will try to find an instance of WOEnterpriseObjectSerializationStrategy for the service and operation; if one has not been registered, a default strategy (an instance of WOEnterpriseObjectSerializationStrategy) will be used.

Parameters:
name - the element name which will appear in the XML
attributes - are the attributes...serialize is free to add more.
value - is the EOEnterpriseObject to be serialized
context - is the SerializationContext
IOException

writeSchema

public boolean writeSchema(Types types)
                    throws Exception
Return XML schema for the specified type, suitable for insertion into the element of a WSDL document.

Parameters:
types - the Java2WSDL Types object which holds the context for the WSDL being generated.
Returns:
true if we wrote a schema, false if we didn't.
Exception
See Also:
org.apache.axis.wsdl.fromJava.Types

Last updated Mon Oct 13 15:42:52 PDT 2003.

Copyright © 2003 Apple Computer, Inc.