public class

ElementGenerator

extends WireFormatOutputGenerator<T>
java.lang.Object
   ↳ com.google.gdata.wireformats.output.CharacterGenerator<S>
     ↳ com.google.gdata.wireformats.output.WireFormatOutputGenerator<T>
       ↳ com.google.gdata.wireformats.output.ElementGenerator<E extends com.google.gdata.model.Element>

Class Overview

The ElementGenerator class implements a simple {WireFormatOutputGenerator} that can generate documents from any GDOM Element representation.

Summary

Fields
private final AltFormat altFormat
private final Class<E extends Element> inputType
Public Methods
AltFormat getAltFormat()
Class<E> getSourceType()
WireFormat getWireFormat()
Returns the wire format to use when generating this output.
static <E extends Element> ElementGenerator<E> of(AltFormat altFormat, Class<E> inputType)
[Expand]
Inherited Methods
From class com.google.gdata.wireformats.output.WireFormatOutputGenerator
From class com.google.gdata.wireformats.output.CharacterGenerator
From class java.lang.Object
From interface com.google.gdata.wireformats.output.OutputGenerator

Fields

private final AltFormat altFormat

private final Class<E extends Element> inputType

Public Methods

public AltFormat getAltFormat ()

public Class<E> getSourceType ()

public WireFormat getWireFormat ()

Returns the wire format to use when generating this output.

public static ElementGenerator<E> of (AltFormat altFormat, Class<E> inputType)

Parameters
altFormat
inputType