com.google.gdata.wireformats.output
Class ElementGenerator<E extends Element>

java.lang.Object
  extended by com.google.gdata.wireformats.output.CharacterGenerator<T>
      extended by com.google.gdata.wireformats.output.WireFormatOutputGenerator<E>
          extended by com.google.gdata.wireformats.output.ElementGenerator<E>
Type Parameters:
E - the element type expected as input to the generator
All Implemented Interfaces:
OutputGenerator<E>

public class ElementGenerator<E extends Element>
extends WireFormatOutputGenerator<E>

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


Method Summary
 AltFormat getAltFormat()
          Returns the alternate representation format produced the generator.
 java.lang.Class<E> getSourceType()
          Returns the Class that represents the expected source data type for output generation.
 WireFormat getWireFormat()
          Returns the wire format to use when generating this output.
static
<E extends Element>
ElementGenerator<E>
of(AltFormat altFormat, java.lang.Class<E> inputType)
           
 
Methods inherited from class com.google.gdata.wireformats.output.WireFormatOutputGenerator
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
 

Method Detail

of

public static <E extends Element> ElementGenerator<E> of(AltFormat altFormat,
                                                         java.lang.Class<E> inputType)

getWireFormat

public WireFormat getWireFormat()
Description copied from class: WireFormatOutputGenerator
Returns the wire format to use when generating this output.

Specified by:
getWireFormat in class WireFormatOutputGenerator<E extends Element>

getAltFormat

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


getSourceType

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