public class GsonSerializer extends java.lang.Object implements SerializerBuilder
Modifier and Type | Field and Description |
---|---|
protected VraptorGsonBuilder |
builder |
Constructor and Description |
---|
GsonSerializer(VraptorGsonBuilder builder,
java.io.Writer writer,
TypeNameExtractor extractor,
ProxyInitializer initializer) |
Modifier and Type | Method and Description |
---|---|
Serializer |
exclude(java.lang.String... names) |
<T> Serializer |
from(T object) |
<T> Serializer |
from(T object,
java.lang.String alias) |
Serializer |
include(java.lang.String... fields) |
Serializer |
recursive()
Include all fields, recursively.
|
void |
serialize()
end method for this fluent interface
|
protected VraptorGsonBuilder builder
public GsonSerializer(VraptorGsonBuilder builder, java.io.Writer writer, TypeNameExtractor extractor, ProxyInitializer initializer)
public Serializer exclude(java.lang.String... names)
exclude
in interface Serializer
public <T> Serializer from(T object, java.lang.String alias)
from
in interface SerializerBuilder
public <T> Serializer from(T object)
from
in interface SerializerBuilder
public Serializer include(java.lang.String... fields)
include
in interface Serializer
public void serialize()
Serializer
serialize
in interface Serializer
public Serializer recursive()
Serializer
recursive
in interface Serializer
Copyright © 2013 Caelum. All Rights Reserved.