WebObjects 5.4.2

com.webobjects.webservices.support.xml
Class WODataSerializer

java.lang.Object
  extended by org.apache.axis.encoding.ser.Base64Serializer
      extended by com.webobjects.webservices.support.xml.WODataSerializer
All Implemented Interfaces:
WOSoapConstants, Serializable, javax.xml.rpc.encoding.Serializer, org.apache.axis.encoding.SimpleValueSerializer

public class WODataSerializer
extends org.apache.axis.encoding.ser.Base64Serializer
implements org.apache.axis.encoding.Serializer, WOSoapConstants

WODataSerializer serializes NSData instances.

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.ser.Base64Serializer
javaType, xmlType
 
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
WODataSerializer()
           
 
Method Summary
 void serialize(QName name, Attributes attributes, Object value, org.apache.axis.encoding.SerializationContext context)
          Serialize an NSData.
 Element writeSchema(Class aJavaType, org.apache.axis.wsdl.fromJava.Types types)
          Return XML schema for the specified type, suitable for insertion into the <types> element of a WSDL document, or underneath an <element> or <attribute> declaration.
 
Methods inherited from class org.apache.axis.encoding.ser.Base64Serializer
getMechanismType, getValueAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.rpc.encoding.Serializer
getMechanismType
 

Constructor Detail

WODataSerializer

public WODataSerializer()
Method Detail

serialize

public void serialize(QName name,
                      Attributes attributes,
                      Object value,
                      org.apache.axis.encoding.SerializationContext context)
               throws IOException
Serialize an NSData.

Overrides:
serialize in class org.apache.axis.encoding.ser.Base64Serializer
Parameters:
name - the element name which will appear in the XML
attributes - are the attributes...serialize is free to add more
value - the NSData to serialize
context - is the SerializationContext
Throws:
IOException

writeSchema

public Element writeSchema(Class aJavaType,
                           org.apache.axis.wsdl.fromJava.Types types)
                    throws Exception
Return XML schema for the specified type, suitable for insertion into the <types> element of a WSDL document, or underneath an <element> or <attribute> declaration.

Overrides:
writeSchema in class org.apache.axis.encoding.ser.Base64Serializer
Parameters:
aJavaType - the Java Class we're writing out schema for
types - the Java2WSDL Types object which holds the context for the WSDL being generated.
Returns:
a type element containing a schema simpleType/complexType
Throws:
Exception
See Also:
Types

Last updated June 2008

Copyright © 2000-2008 Apple Inc.