FileDocCategorySizeDatePackage
DataSer.javaAPI DocApache Axis 1.41809Sat Apr 22 18:56:52 BST 2006samples.encoding

DataSer

public class DataSer extends Object implements org.apache.axis.encoding.Serializer

Fields Summary
public static final String
STRINGMEMBER
public static final String
FLOATMEMBER
public static final String
DATAMEMBER
public static final QName
myTypeQName
Constructors Summary
Methods Summary
public java.lang.StringgetMechanismType()

 return Constants.AXIS_SAX; 
public voidserialize(javax.xml.namespace.QName name, org.xml.sax.Attributes attributes, java.lang.Object value, org.apache.axis.encoding.SerializationContext context)
Serialize an element named name, with the indicated attributes and value.

param
name is the element name
param
attributes are the attributes...serialize is free to add more.
param
value is the value
param
context is the SerializationContext


           
                                              
         
                             
         
    
        if (!(value instanceof Data))
            throw new IOException("Can't serialize a " + value.getClass().getName() + " with a DataSerializer.");
        Data data = (Data)value;

        context.startElement(name, attributes);
        context.serialize(new QName("", STRINGMEMBER), null, data.stringMember);
        context.serialize(new QName("", FLOATMEMBER), null, data.floatMember);
        context.serialize(new QName("", DATAMEMBER), null, data.dataMember);
        context.endElement();
    
public org.w3c.dom.ElementwriteSchema(java.lang.Class javaType, org.apache.axis.wsdl.fromJava.Types types)

        return null;