com.webobjects.webservices.support.xml
Class WOEnterpriseObjectSerializer
java.lang.Object
com.webobjects.webservices.support.xml.WOEnterpriseObjectSerializer
- All Implemented Interfaces:
- WOSoapConstants, Serializable, javax.xml.rpc.encoding.Serializer
public class WOEnterpriseObjectSerializer
- extends Object
- implements org.apache.axis.encoding.Serializer, WOSoapConstants
WOEnterpriseObjectSerializer serializes objects implementing the EOEnterpriseObject interface.
- See Also:
- Serialized Form
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 |
Method Summary |
String |
getMechanismType()
|
void |
serialize(QName name,
Attributes attributes,
Object value,
org.apache.axis.encoding.SerializationContext context)
Serialize a value implementing EOEnterpriseObject into an element named name , with the indicated attributes. |
Element |
writeSchema(Class javaType,
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WOEnterpriseObjectSerializer
public WOEnterpriseObjectSerializer()
serialize
public void serialize(QName name,
Attributes attributes,
Object value,
org.apache.axis.encoding.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 XMLattributes
- are the attributes...serialize is free to add more.value
- is the EOEnterpriseObject to be serializedcontext
- is the SerializationContext
- Throws:
IOException
getMechanismType
public String getMechanismType()
- Specified by:
getMechanismType
in interface javax.xml.rpc.encoding.Serializer
writeSchema
public Element writeSchema(Class javaType,
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.
- Parameters:
javaType
- the Java Class we're writing out schema fortypes
- 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
Copyright © 2000-2008 Apple Inc.