[jdom-interest] new element methods?
Phill_Perryman at Mitel.COM
Phill_Perryman at Mitel.COM
Thu Jul 17 00:00:08 PDT 2003
I would agree if it were not for the fact that JDOM already has several
convienience methods already, so if JDOM is prepared to have convenience
methods then why not these.
java.lang.String
getChildText(java.lang.String name)
This convenience method returns the textual content of the named
child element, or returns an empty String ("") if the child has no textual content.
java.lang.String
getChildText(java.lang.String name, Namespace ns)
This convenience method returns the textual content of the named
child element, or returns null if there's no such child.
java.lang.String
getChildTextNormalize(java.lang.String name)
This convenience method returns the normalized textual content
of the named child element, or returns null if there's no such child.
java.lang.String
getChildTextNormalize(java.lang.String name, Namespace ns)
This convenience method returns the normalized textual content
of the named child element, or returns null if there's no such child.
java.lang.String
getChildTextTrim(java.lang.String name)
This convenience method returns the trimmed textual content of
the named child element, or returns null if there's no such child.
java.lang.String
getChildTextTrim(java.lang.String name, Namespace ns)
This convenience method returns the trimmed textual content of
the named child element, or returns null if there's no such child.
/Phill
IS Dept, Software Engineer.
phill_perryman at mitel.com
http://www.mitel.com
Tel: +44 1291 436023
Bryan Thale <bryan.thale at motorola.com>
Sent by: jdom-interest-admin at jdom.org
15/07/2003 19:12
To: jdom-interest at jdom.org
cc:
Subject: Re: [jdom-interest] new element methods?
>
>
>Essentially, his getXXX methods also take a default value that it returns
in
>the case where it fails...
>
>
An improvement, but I'd still maintain that such app dependent
considerations are best kept out of JDOM proper.
Bryan.
--
Bryan Thale
Networks & Infrastructure Research, Motorola Labs
mailto:bryan.thale at motorola.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030717/0e206864/attachment.htm
More information about the jdom-interest
mailing list