why XMLEncoder is not encoding all public properties?
I have the following properties (both getters and setters are public)
String fieldID = null;
String validationCode = null;
String vaidationMessage = null;
String value = null;
boolean changeIndicator = true;
But when I encode, it is not encoding validationMessage and changeIndicator. I am not directly encoding this object, but this is part other object and I am trying to encode that object.
Edit: These are not being set through constructor.. I have another method which sets 2, 3rd and 4th parameters
Re: why XMLEncoder is not encoding all public properties?
Have you read this tutorial on using XmlEncoder.
My guess (and it's only a guess because you haven't shown the code) is your settter/getter methods are named correctly for these variables.
Re: why XMLEncoder is not encoding all public properties?
Quote:
Originally Posted by
keang
Have you read
this tutorial on using XmlEncoder.
My guess (and it's only a guess because you haven't shown the code) is your
setter/getter methods are
not named correctly for these variables.
FTFY
Too much wine again? ;)
Re: why XMLEncoder is not encoding all public properties?
Quote:
Originally Posted by ProgramThis
My guess (and it's only a guess because you haven't shown the code) is your setter/getter methods are not named correctly for these variables.
FTFY
:blush: Yes that's what I meant to say - thanks for the correction :thumb:
Quote:
Too much wine again?
Or maybe not enough wine :D
Re: why XMLEncoder is not encoding all public properties?
Quote:
Originally Posted by
keang
... Or maybe not enough wine :D
That's the spirit! :D
We lived for days on nothing but food and water...
W.C. Fields