public class XStreamSerializer extends java.lang.Object implements SerializerBuilder
Constructor and Description |
---|
XStreamSerializer(com.thoughtworks.xstream.XStream xstream,
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
|
public XStreamSerializer(com.thoughtworks.xstream.XStream xstream, 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.