Why is method encodeProperty(String, Object, boolean) of XMLEncoder private?

From: Christian Mittendorf (christian.mittendor..reenet.de)
Date: Tue Sep 26 2006 - 07:03:37 EDT

  • Next message: Tobias SCHOESSLER: "Re: Problems with MySql id type with AUTO_INCREMENT"

    Hello!

    I would like to serialize properties that are NULL into the xml.

    I therefore submit a String "" to the serializer, but in those cases
    the type will be set to String instead of Date or whatever type the
    property actually is.

    It would be helpful if I could configure the encodeProperty method
    in a way that it would do something else than simply return if a
    value is null:

    void encodeProperty(String xmlTag, Object value, boolean useType)
    ...
    if (value == null) {
            return;
    }

    Christian



    This archive was generated by hypermail 2.0.0 : Tue Sep 26 2006 - 07:04:14 EDT