FileDocCategorySizeDatePackage
XmlSubscribedFeedsEntryGDataSerializer.javaAPI DocAndroid 1.5 API3086Wed May 06 22:41:16 BST 2009com.google.wireless.gdata.subscribedfeeds.serializer.xml

XmlSubscribedFeedsEntryGDataSerializer

public class XmlSubscribedFeedsEntryGDataSerializer extends com.google.wireless.gdata.serializer.xml.XmlEntryGDataSerializer
Serializes the SubscribedFeedEntry into the Atom XML format.

Fields Summary
public static final String
NAMESPACE_GSYNC
public static final String
NAMESPACE_GSYNC_URI
Constructors Summary
public XmlSubscribedFeedsEntryGDataSerializer(com.google.wireless.gdata.parser.xml.XmlParserFactory factory, com.google.wireless.gdata.subscribedfeeds.data.SubscribedFeedsEntry entry)


      
                                                    
        super(factory, entry);
    
Methods Summary
protected voiddeclareExtraEntryNamespaces(org.xmlpull.v1.XmlSerializer serializer)

        serializer.setPrefix(NAMESPACE_GSYNC, NAMESPACE_GSYNC_URI);
    
protected com.google.wireless.gdata.subscribedfeeds.data.SubscribedFeedsEntrygetSubscribedFeedsEntry()

        return (SubscribedFeedsEntry) getEntry();
    
private static voidserializeClientToken(org.xmlpull.v1.XmlSerializer serializer, java.lang.String clientToken)

        if (StringUtils.isEmpty(clientToken)) {
            clientToken = "";
        }
        serializer.startTag(NAMESPACE_GSYNC_URI, "clientToken");
        serializer.text(clientToken);
        serializer.endTag(NAMESPACE_GSYNC_URI, "clientToken");
    
protected voidserializeExtraEntryContents(org.xmlpull.v1.XmlSerializer serializer, int format)

        SubscribedFeedsEntry entry = getSubscribedFeedsEntry();

        serializeFeedUrl(serializer,  entry.getSubscribedFeed());
        serializeClientToken(serializer, entry.getClientToken());
        serializeRoutingInfo(serializer, entry.getRoutingInfo());
    
private static voidserializeFeedUrl(org.xmlpull.v1.XmlSerializer serializer, com.google.wireless.gdata.subscribedfeeds.data.FeedUrl feedUrl)

        serializer.startTag(NAMESPACE_GSYNC_URI, "feedurl");
        serializer.attribute(null /* ns */, "value", feedUrl.getFeed());
        serializer.attribute(null /* ns */, "service", feedUrl.getService());
        serializer.attribute(null /* ns */, "authtoken", feedUrl.getAuthToken());
        serializer.endTag(NAMESPACE_GSYNC_URI, "feedurl");
    
private static voidserializeRoutingInfo(org.xmlpull.v1.XmlSerializer serializer, java.lang.String routingInfo)

        if (StringUtils.isEmpty(routingInfo)) {
            routingInfo = "";
        }
        serializer.startTag(NAMESPACE_GSYNC_URI, "routingInfo");
        serializer.text(routingInfo);
        serializer.endTag(NAMESPACE_GSYNC_URI, "routingInfo");