[jdom-interest] Could you please provide BeanInfo classes?

Alexey Solofnenko A.Solofnenko at mdl.com
Tue Oct 1 17:27:41 PDT 2002


Many tools can work with JavaBeans properties directly. Some scripting
languages provide syntactic sugar that allow 'node.text="Some Text"' or even
'note.text+="\n"+msg' instead of 'node.setText("Some Text")'. Java can guess
properties, but unfortunately (and intentionally) JDOM setters do not follow
Java standards for setters ( void set<PropertyName>(Type value) ). To make
Java to recognize JDom setters as property setters <Class>BeanInfo class
should be defined that describes what properties (with what getters and
setters) the class has.

Sincerely,
  Alexey.

--
{ http://trelony.cjb.net/   } Alexey N. Solofnenko
{ http://www.inventigo.com/ } Inventigo LLC
Pleasant Hill, CA (GMT-8 usually)

-----Original Message-----
From: Alex Rosen [mailto:arosen at novell.com] 
Sent: Tuesday, October 01, 2002 3:59 PM
To: jdom-interest at jdom.org; A.Solofnenko at mdli.com
Subject: Re: [jdom-interest] Could you please provide BeanInfo classes?

I've never though of JDOM objects (i.e. XML objects) as JavaBeans. How
would this work? Why would it be useful?

Alex

>>> Alexey Solofnenko <A.Solofnenko at mdl.com> 09/25/02 03:48PM >>>
Hello,

  JDOM setters are convenient, but they are not property setters
according
to Java specification. Could you please provide BeanInfo classes to
define
property setters, so they could be recognised by scripting and other
tools?

- Alexey.

--
{ http://trelony.cjb.net/   } Alexey N. Solofnenko
{ http://www.inventigo.com/ } Inventigo LLC
Pleasant Hill, CA (GMT-8 usually)

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list