WebObjects 5.2

com.webobjects.webservices.support.xml
Class WOEnterpriseObjectDeserializer

com.webobjects.webservices.support.xml.WOEnterpriseObjectDeserializer
All Implemented Interfaces:
WOSoapConstants

public class WOEnterpriseObjectDeserializer
implements WOSoapConstants

WOEnterpriseObjectDeserializer deserializes instances of classes implementing EOEnterpriseObject. Users must register a separate WOEnterpriseObjectDeserializer for every class implementing WOEnterpriseObjectDeserializer which is not a subclass of EOGenericRecord or EOCustomRecord.


Inner classes inherited from class com.webobjects.webservices.support.xml.WOSoapConstants
WOSoapConstants.WOXMLAttributes
 
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
WOEnterpriseObjectDeserializer()
           
 
Method Summary
protected  Object mergeProperties(Object subject, WOStringKeyMap properties, String keyPathPrefix, WOEnterpriseObjectSerializationStrategy strategy)
           
 void onEndElement(String namespace, String localName, com.webobjects.webservices.support.xml.DeserializationContext context)
           
 org.apache.axis.message.SOAPHandler onStartChild(String namespace, String localName, String prefix, org.xml.sax.Attributes attributes, com.webobjects.webservices.support.xml.DeserializationContext context)
           
 void onStartElement(String namespace, String localName, String prefix, org.xml.sax.Attributes attributes, com.webobjects.webservices.support.xml.DeserializationContext context)
           
 void setEntityName(Object name)
          Set the name of the class to which an element will be deserialized.
 void setGlobalID(Object gid)
          Set the globalID of the object to be instantiated.
 void setProperties(Object map)
           
 

Constructor Detail

WOEnterpriseObjectDeserializer

public WOEnterpriseObjectDeserializer()
Method Detail

mergeProperties

protected Object mergeProperties(Object subject,
                                 WOStringKeyMap properties,
                                 String keyPathPrefix,
                                 WOEnterpriseObjectSerializationStrategy strategy)

onEndElement

public void onEndElement(String namespace,
                         String localName,
                         com.webobjects.webservices.support.xml.DeserializationContext context)
                  throws org.xml.sax.SAXException

onStartChild

public org.apache.axis.message.SOAPHandler onStartChild(String namespace,
                                                        String localName,
                                                        String prefix,
                                                        org.xml.sax.Attributes attributes,
                                                        com.webobjects.webservices.support.xml.DeserializationContext context)
                                                 throws org.xml.sax.SAXException

onStartElement

public void onStartElement(String namespace,
                           String localName,
                           String prefix,
                           org.xml.sax.Attributes attributes,
                           com.webobjects.webservices.support.xml.DeserializationContext context)
                    throws org.xml.sax.SAXException

setEntityName

public void setEntityName(Object name)
                   throws org.xml.sax.SAXException
Set the name of the class to which an element will be deserialized.
Parameters:
name - String name of the entity class to be instantiated

setGlobalID

public void setGlobalID(Object gid)
                 throws org.xml.sax.SAXException
Set the globalID of the object to be instantiated.
Parameters:
gid - the EOGlobalID for the object to be instantiated.

setProperties

public void setProperties(Object map)
                   throws org.xml.sax.SAXException

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.