[jdom-interest] API suggestion
mjenning at islandnet.com
Thu Dec 28 11:11:00 PST 2000
What about a factory method in org.jdom.Element that creates an element and sets its
text all in one go.
public static Element createElement(String name,String text)
Element e=new Element(name);
Then, one could replace code that looks like the following:
Element e=new Element("somename").setText("somevalue");
Basically just as a convenience method for programmers that need to create a lot of
elements with text but no attributes.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jdom-interest