WebObjects 5.2.3

com.webobjects.webservices.support.xml
Class WOEnterpriseObjectDeserializer

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.apache.axis.message.SOAPHandler
          extended byorg.apache.axis.encoding.DeserializerImpl
              extended bycom.webobjects.webservices.support.xml.WOEnterpriseObjectDeserializer
All Implemented Interfaces:
org.apache.axis.encoding.Callback, ContentHandler, javax.xml.rpc.encoding.Deserializer, org.apache.axis.encoding.Deserializer, DTDHandler, EntityResolver, ErrorHandler, Serializable, WOSoapConstants

public class WOEnterpriseObjectDeserializer
extends org.apache.axis.encoding.DeserializerImpl
implements org.apache.axis.encoding.Deserializer, 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.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.webservices.support.xml.WOSoapConstants
WOSoapConstants.WOXMLAttributes
 
Field Summary
 
Fields inherited from class org.apache.axis.encoding.DeserializerImpl
defaultType, id, isEnded, isHref, isNil, log, targets, value
 
Fields inherited from class org.apache.axis.message.SOAPHandler
myElement
 
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, org.apache.axis.encoding.DeserializationContext context)
           
 org.apache.axis.message.SOAPHandler onStartChild(String namespace, String localName, String prefix, Attributes attributes, org.apache.axis.encoding.DeserializationContext context)
           
 void onStartElement(String namespace, String localName, String prefix, Attributes attributes, org.apache.axis.encoding.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)
           
 
Methods inherited from class org.apache.axis.encoding.DeserializerImpl
componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setDefaultType, setValue, setValue, startElement, valueComplete
 
Methods inherited from class org.apache.axis.message.SOAPHandler
makeNewElement, onEndChild
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.axis.encoding.Deserializer
componentsReady, endElement, getDefaultType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setDefaultType, setValue, setValue, startElement, valueComplete
 
Methods inherited from interface javax.xml.rpc.encoding.Deserializer
getMechanismType
 

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,
                         org.apache.axis.encoding.DeserializationContext context)
                  throws SAXException
Specified by:
onEndElement in interface org.apache.axis.encoding.Deserializer
Throws:
SAXException

onStartChild

public org.apache.axis.message.SOAPHandler onStartChild(String namespace,
                                                        String localName,
                                                        String prefix,
                                                        Attributes attributes,
                                                        org.apache.axis.encoding.DeserializationContext context)
                                                 throws SAXException
Specified by:
onStartChild in interface org.apache.axis.encoding.Deserializer
Throws:
SAXException

onStartElement

public void onStartElement(String namespace,
                           String localName,
                           String prefix,
                           Attributes attributes,
                           org.apache.axis.encoding.DeserializationContext context)
                    throws SAXException
Specified by:
onStartElement in interface org.apache.axis.encoding.Deserializer
Throws:
SAXException

setEntityName

public void setEntityName(Object name)
                   throws 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
Throws:
SAXException

setGlobalID

public void setGlobalID(Object gid)
                 throws SAXException
Set the globalID of the object to be instantiated.

Parameters:
gid - the EOGlobalID for the object to be instantiated.
Throws:
SAXException

setProperties

public void setProperties(Object map)
                   throws SAXException
Throws:
SAXException

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.