public class

SitemapNews

extends ExtensionPoint
java.lang.Object
   ↳ com.google.gdata.data.AbstractExtension
     ↳ com.google.gdata.data.ExtensionPoint
       ↳ com.google.gdata.data.webmastertools.SitemapNews

Class Overview

Represents list of available publication labels for News sitemap. The idea is that this class lists all the available options for a given site and user picks one of the options when submitting News sitemap. Example:

     
       ...
       
         Label1
         Label2
       
    
  

Summary

Nested Classes
class SitemapNews.Handler parser. 
Constants
String SITEMAP_NEWS
String SITEMAP_PUBLICATION_LABEL
[Expand]
Inherited Fields
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
Public Constructors
SitemapNews()
Public Methods
void addPublicationLabel(String label)
Add another language to the enumeration.
void generate(XmlWriter writer, ExtensionProfile profile)
Generates an XML representation for the extension.
XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.
Collection<String> getPublicationLabels()
Get all the languages.
[Expand]
Inherited Methods
From class com.google.gdata.data.ExtensionPoint
From class com.google.gdata.data.AbstractExtension
From class java.lang.Object
From interface com.google.gdata.data.Extension

Constants

public static final String SITEMAP_NEWS

Constant Value: "sitemap-news"

private static final String SITEMAP_PUBLICATION_LABEL

Constant Value: "publication-label"

Public Constructors

public SitemapNews ()

Public Methods

public void addPublicationLabel (String label)

Add another language to the enumeration.

Parameters
label

public void generate (XmlWriter writer, ExtensionProfile profile)

Generates an XML representation for the extension.

Parameters
writer XML writer
profile Extension profile
Throws
IOException

public XmlParser.ElementHandler getHandler (ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)

The default implementation uses the AbstractExtension.AttributesHandler to handle parsing the extension.

Parameters
extProfile Extension profile
namespace Extension namespace
localName Tag name, without the namespace prefix
attrs Tag attributes
Returns
  • an element handler

public Collection<String> getPublicationLabels ()

Get all the languages.