Re: generate interface to xml



I haven't used it but I believe that XMLEncoder is only for persisting
the state of java beans, ie, setters and getters have to match
correctly and the class has to implement serializable. I think the
javadoc explains it that way.

I use JAXB alot for object/xml mapping, but you do need an XML Schema.

iksrazal

.



Relevant Pages

  • Table --> bean or vice versa?
    ... Does anyone open source packages or plugins that will generate basic ... java beans (getters and setters) from a db table? ...
    (comp.lang.java.programmer)
  • Re: OO in Python? ^^
    ... > getters and setters in Java? ... getters, then it makes sense to write setters and getters. ... insurance against you changing the private interface. ... > a hack in Python (common, "hiding" an implementation detail by prefixing ...
    (comp.lang.python)
  • Re: "Getter" methods no good?
    ... The fear is that if you have getters and setters on an object, then other objects are going to extract the private data of the object, do some processing on it and write it back. ... there are many cases where instance variables of an object are fundamental to the object's behavior and you need to be able to set them or get them. ... BTW, I wrote a physics simulator myself and found that the best algorithm to solve the physics equations was to extract the positions and velocities from the particles, store them into one big vector, run Adaptive Runge Kutta on the vector, then write all the data back. ...
    (comp.lang.smalltalk)
  • Re: Holub on getters/setters again
    ... In this post by DanielT, I find that DanielT is blatantly guilty of ... >> A class with lots of getters and setters may be an indication of ... >> and setters. ... I'm outraged at both DanielT and RCM, and any one of good conscience ...
    (comp.object)
  • Re: How to write Smart Python programs?
    ... Do not write getters and setters. ... In Java, you have to use getters and setters because using public fields gives you no opportunity to go back and change your mind later to using getters and setters. ... In Python, this is silly, because you can start with a normal attribute and change your mind at any time, without affecting any clients of the class. ...
    (comp.lang.python)