E - the element type expected as input to the generatorpublic class ElementGenerator<E extends Element> extends WireFormatOutputGenerator<E>
Element representation.| Modifier and Type | Method and Description |
|---|---|
AltFormat |
getAltFormat()
Returns the alternate representation format produced the generator.
|
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> |
of(AltFormat altFormat,
Class<E> inputType) |
generategenerate, getCharsetEncoding, getContentWriter, usePrettyPrintpublic static <E extends Element> ElementGenerator<E> of(AltFormat altFormat, Class<E> inputType)
public WireFormat getWireFormat()
WireFormatOutputGeneratorgetWireFormat in class WireFormatOutputGenerator<E extends Element>public AltFormat getAltFormat()
OutputGeneratorpublic Class<E> getSourceType()
OutputGeneratorClass that represents the expected source data type for
output generation.Copyright © 2012. All Rights Reserved.