public final class XmlSerializer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
deserialize(Document document,
java.lang.Class<T> aClass) |
static <T> T |
deserialize(Element element,
java.lang.Class<T> aClass) |
static void |
deserializeInto(java.lang.Object bean,
Element element) |
static BeanBinding |
getBeanBinding(java.lang.Class<?> aClass)
Use only if it is a hot spot, otherwise use
deserializeInto(Object, Element) or serializeInto(Object, Element) . |
static Element |
serialize(java.lang.Object object)
Consider to use
SkipDefaultValuesSerializationFilters |
static Element |
serialize(java.lang.Object object,
SerializationFilter filter) |
static Element |
serializeIfNotDefault(java.lang.Object object,
SerializationFilter filter) |
static void |
serializeInto(java.lang.Object bean,
Element element) |
static void |
serializeInto(java.lang.Object bean,
Element element,
SerializationFilter filter) |
public static Element serialize(java.lang.Object object) throws SerializationException
SkipDefaultValuesSerializationFilters
SerializationException
public static Element serialize(java.lang.Object object, SerializationFilter filter) throws SerializationException
SerializationException
public static Element serializeIfNotDefault(java.lang.Object object, SerializationFilter filter)
public static <T> T deserialize(Document document, java.lang.Class<T> aClass) throws SerializationException
SerializationException
public static <T> T deserialize(Element element, java.lang.Class<T> aClass) throws SerializationException
SerializationException
public static void deserializeInto(java.lang.Object bean, Element element)
public static BeanBinding getBeanBinding(java.lang.Class<?> aClass)
deserializeInto(Object, Element)
or serializeInto(Object, Element)
.public static void serializeInto(java.lang.Object bean, Element element)
public static void serializeInto(java.lang.Object bean, Element element, SerializationFilter filter)