WebObjects 5.4.2

com.webobjects.webservices.support.xml
Class WOEnterpriseObjectDeserializer

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

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/interfaces inherited from interface com.webobjects.webservices.support.xml.WOSoapConstants
WOSoapConstants.WOXMLAttributes
 
Field Summary
 
Fields inherited from class org.apache.axis.encoding.DeserializerImpl
componentsReadyFlag, 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, EOGLOBALID_QNAME_WEBSERVICESCORE_WORKAROUND, NS_PREFIX_WOSOAP_ENC, NSARRAY_QNAME, NSDATA_QNAME, NSDICTIONARY_QNAME, NSKVCNULL_QNAME, NSRANGE_QNAME, NSSET_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
addChildDeserializer, componentsReady, endElement, getDefaultType, getMechanismType, getValue, getValue, getValueTargets, moveValueTargets, registerValueTarget, removeValueTargets, setChildValue, setDefaultType, setValue, setValue, startElement, valueComplete
 
Methods inherited from class org.apache.axis.message.SOAPHandler
characters, makeNewElement, onEndChild
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
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, setChildValue, setDefaultType, setValue, startElement, valueComplete
 
Methods inherited from interface javax.xml.rpc.encoding.Deserializer
getMechanismType
 
Methods inherited from interface org.apache.axis.encoding.Callback
setValue
 

Constructor Detail

WOEnterpriseObjectDeserializer

public WOEnterpriseObjectDeserializer()
Method Detail

onStartElement

public void onStartElement(String namespace,
                           String localName,
                           String prefix,
                           Attributes attributes,
                           org.apache.axis.encoding.DeserializationContext context)
                    throws SAXException
Overrides:
onStartElement in class org.apache.axis.encoding.DeserializerImpl
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
Overrides:
onStartChild in class org.apache.axis.encoding.DeserializerImpl
Throws:
SAXException

onEndElement

public void onEndElement(String namespace,
                         String localName,
                         org.apache.axis.encoding.DeserializationContext context)
                  throws SAXException
Overrides:
onEndElement in class org.apache.axis.encoding.DeserializerImpl
Throws:
SAXException

mergeProperties

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

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 June 2008

Copyright © 2000-2008 Apple Inc.