com.google.gdata.wireformats.output
Class AtomServiceGenerator

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

public class AtomServiceGenerator
extends XmlGenerator<IServiceDocument>

Generates the metadata for an Atom Service (introspection) document.


Constructor Summary
AtomServiceGenerator()
           
 
Method Summary
 void generateXml(XmlWriter xw, OutputProperties outProps, IServiceDocument source)
          Writes the Service document for the target feed.
 AltFormat getAltFormat()
          Returns the alternate representation format produced the generator.
 java.lang.Class<IServiceDocument> 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

AtomServiceGenerator

public AtomServiceGenerator()
Method Detail

getAltFormat

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


getSourceType

public java.lang.Class<IServiceDocument> 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,
                        IServiceDocument source)
                 throws java.io.IOException
Writes the Service document for the target feed.

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