net.sf.jsefa.xml
Interface XmlSerializer
- All Superinterfaces:
- Serializer
- All Known Implementing Classes:
- XmlSerializerImpl
public interface XmlSerializer
- extends Serializer
Iterator-style interface for stream based xml serializer.
Notes on handling of null
values:
1. A field mapped to an attribute, a simple type element, complex type element or list type element with no
value (null
) will not be serialized, i. e. no element or attribute will be created for this
field.
2. An object mapped to a complex element with all fields having a null value will be serialized to an empty
element. This includes objects mapped to complex elements with a text content. For those objects the
serialzation result is the same for a null and for an empty text content, but the deserialization will create an
empty String
in both cases.
- Author:
- Norman Lahme-Huetig
- See Also:
Serializer
getLowLevelSerializer
XmlLowLevelSerializer getLowLevelSerializer()
- Returns a low level xml serializer.
- Specified by:
getLowLevelSerializer
in interface Serializer
- Returns:
- a low level xml serializer.
Copyright © 2014. All rights reserved.