ntlcn / xmappr

Automatically exported from code.google.com/p/xmappr
0 stars 0 forks source link

Custom accessor methods #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Xmappr should support custom getters/setters via annotations set on methods:

@RootElement("primitives")
    public static class Primitives {

        private int in;

        @Attribute
        public int getIn() {
            return in;
        }

        @Attribute
        public void setIn(int in) {
            this.in = in;
        }
}

This is also needed for Interface mappings.

Original issue reported on code.google.com by peter.kn...@gmail.com on 25 Jan 2010 at 12:48

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r268.

Original comment by peter.kn...@gmail.com on 3 Feb 2010 at 4:36