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