FileDocCategorySizeDatePackage
XmlListEntryGDataSerializer.javaAPI DocAndroid 1.5 API2311Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.spreadsheets.serializer.xml

XmlListEntryGDataSerializer

public class XmlListEntryGDataSerializer extends com.google.wireless.gdata.serializer.xml.XmlEntryGDataSerializer
A serializer for handling GData Spreadsheets List entries.

Fields Summary
public static final String
NAMESPACE_GSX
The prefix to use for the GData Spreadsheets list namespace
public static final String
NAMESPACE_GSX_URI
The URI of the GData Spreadsheets list namespace
Constructors Summary
public XmlListEntryGDataSerializer(com.google.wireless.gdata.parser.xml.XmlParserFactory xmlFactory, com.google.wireless.gdata.data.Entry entry)
Creates a new XmlListEntryGDataSerializer.

param
entry the entry to be serialized


                     
         
        super(xmlFactory, entry);
    
Methods Summary
protected voiddeclareExtraEntryNamespaces(org.xmlpull.v1.XmlSerializer serializer)
Sets up the GData Spreadsheets list namespace.

param
serializer the XML serializer to use
throws
IOException on stream errors.

        serializer.setPrefix(NAMESPACE_GSX, NAMESPACE_GSX_URI);
    
protected voidserializeExtraEntryContents(org.xmlpull.v1.XmlSerializer serializer, int format)

        ListEntry entry = (ListEntry) getEntry();
        Vector names = entry.getNames();
        String name = null;
        String value = null;
        Iterator it = names.iterator();
        while (it.hasNext()) {
            name = (String) it.next();
            value = entry.getValue(name);
            if (value != null) {
                serializer.startTag(NAMESPACE_GSX_URI, name);
                serializer.text(value);
                serializer.endTag(NAMESPACE_GSX_URI, name);
            }
        }