com.google.gdata.wireformats.output
Class OpenSearchGenerator

java.lang.Object
  extended by com.google.gdata.wireformats.output.CharacterGenerator<S>
      extended by com.google.gdata.wireformats.output.XmlGenerator<OpenSearchDescriptionDocument>
          extended by com.google.gdata.wireformats.output.OpenSearchGenerator
All Implemented Interfaces:
OutputGenerator<OpenSearchDescriptionDocument>

public class OpenSearchGenerator
extends XmlGenerator<OpenSearchDescriptionDocument>

Generates the output for an OpenSearch description document


Constructor Summary
OpenSearchGenerator()
           
 
Method Summary
 void generateXml(XmlWriter xw, OutputProperties outProps, OpenSearchDescriptionDocument source)
          Writes the metadata based upon the specified feed.
 AltFormat getAltFormat()
          Returns the alternate representation format produced the generator.
 java.lang.Class<OpenSearchDescriptionDocument> getSourceType()
          Returns the Class that represents the expected source data type for output generation.
 
Methods inherited from class com.google.gdata.wireformats.output.XmlGenerator
generate
 
Methods inherited from class com.google.gdata.wireformats.output.CharacterGenerator
generate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSearchGenerator

public OpenSearchGenerator()
Method Detail

getAltFormat

public AltFormat getAltFormat()
Description copied from interface: OutputGenerator
Returns the alternate representation format produced the generator.


getSourceType

public java.lang.Class<OpenSearchDescriptionDocument> getSourceType()
Description copied from interface: OutputGenerator
Returns the Class that represents the expected source data type for output generation.


generateXml

public void generateXml(XmlWriter xw,
                        OutputProperties outProps,
                        OpenSearchDescriptionDocument source)
                 throws java.io.IOException
Writes the metadata based upon the specified feed. encoding.

Specified by:
generateXml in class XmlGenerator<OpenSearchDescriptionDocument>
Throws:
java.io.IOException