Interface UnmarshallableObject

    • Method Detail

      • readObject

        default UnmarshallableObject readObject​(StructuredReader reader)
        ATTENTION: This object will be modified such that the read data will be applied. For complex objects (e.g. beans with multiple properties) those properties not defined in the data that is read will not be overwritten. In order to get a clean representation of the data from the given reader you should invoke this method on an empty object.
        Specified by:
        readObject in interface Unmarshaller<Object>
        Parameters:
        reader - the StructuredReader where to read the data from.
        Returns:
        the unmarhsalled or de-serialized object. If this is an instance of UnmarshallableObject then the called instance is modified by filling in the unmarshalled data and will return itself.
        See Also:
        read(StructuredReader)
      • read

        void read​(StructuredReader reader)
        Parameters:
        reader - the StructuredReader where to read the data from. This object will be modified such that the read data will be applied. For complex objects (e.g. beans with multiple properties) those properties not defined in the data that is read will not be overwritten. In order to get a clean representation of the data from the given reader you should invoke this method on an empty object.