-
January 9th, 2009, 06:08 PM
#1
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
Last edited by getstarted; January 9th, 2009 at 06:10 PM.
-
January 10th, 2009, 09:09 AM
#2
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.
-
January 12th, 2009, 08:16 AM
#3
Re: why XMLEncoder is not encoding all public properties?
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?
-
January 12th, 2009, 12:53 PM
#4
Re: why XMLEncoder is not encoding all public properties?
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
Yes that's what I meant to say - thanks for the correction
Or maybe not enough wine
-
January 12th, 2009, 05:57 PM
#5
Re: why XMLEncoder is not encoding all public properties?
Originally Posted by keang
... Or maybe not enough wine
That's the spirit!
We lived for days on nothing but food and water...
W.C. Fields
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|