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.
|
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> |
of(AltFormat altFormat,
java.lang.Class<E> inputType) |
generategenerate, getCharsetEncoding, getContentWriter, usePrettyPrintpublic static <E extends Element> ElementGenerator<E> of(AltFormat altFormat, java.lang.Class<E> inputType)
public WireFormat getWireFormat()
WireFormatOutputGeneratorgetWireFormat in class WireFormatOutputGenerator<E extends Element>public AltFormat getAltFormat()
OutputGeneratorpublic java.lang.Class<E> getSourceType()
OutputGeneratorClass that represents the expected source data type for
output generation.