Armin,

You need public getters (eg: public String getFoo()) for each field you want saved in the XML. If you don't want to use public getters then you'll need to write a custom FieldHandler that will fetch and return the values as Castor does not support accessing private and protected methods for the sole reason that they have been marked as private and protected. We may provide a solution in the future that allows this by granting Castor the rights to access these methods, but right now we don't support it directly.

--Keith

Armin Buttinger wrote:
Hello,

First Problem:
The Problem is, if I save an object into XML, I don't see variables, which are not "public" ... and if the object has got objects, I don't see anything about it in the XML-file.


Second Problem:

I've got following Class ...

------

public Class Knot {
  private Knot left;
  private knot right;

....

  public void setLeft(Knot knot) {
     left = knot;
}


If I create a hierarchy of Knots and want to save this to XML I don't see anything. Why?




-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------




-------------------------------------------------
If you wish to unsubscribe from this list, please send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to