[jdom-interest] Suggestion

Etienne-Hugues Fortin efortin at originalsim.com
Sat Dec 23 05:20:55 PST 2000

+1.  Isn't this more and more present in any method that get data from any source?  If I remember well, it's something used with properties files.  That give the developer another alternative instead of dealing with "null" as well.


  ----- Original Message ----- 
  From: Mike Jennings 
  To: jdom-interest at jdom.org 
  Sent: Friday, December 22, 2000 10:27 PM
  Subject: [jdom-interest] Suggestion


  What about adding a method to org.jdom.Element

      public String getAttributeValue(String name, Namespace ns, String default)

  Such that if the attribute named "name" does not exist, the String "default" is returned.
  This could be useful in cases where an XML file has default values for attributes
  that are not specified.

  What do the powers that be think of this idea?

  -Mike Jennings

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20001223/f96a06d4/attachment.htm

More information about the jdom-interest mailing list