Re: [Simple-support] cannot know the number of attributes through InputNode?
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-03-16 01:48:17
|
Hi,
Yes, I guess there really should be a count of the attributes in the NodeMap.
Thanks,Niall
--- On Thu, 15/3/12, -=}\*/{=- <rui...@gm...> wrote:
From: -=}\*/{=- <rui...@gm...>
Subject: Re: [Simple-support] cannot know the number of attributes through InputNode?
To: sim...@li...
Received: Thursday, 15 March, 2012, 6:31 PM
rehi,
since no one answers...
my current workaround...
private boolean hasAttributes(InputNode in) { return in.getAttributes().iterator().hasNext();
}
[cheers] rui
On 20 February 2012 00:05, -=}\*/{=- <rui...@gm...> wrote:
hi,
i'm implementing a Converter and in the "read(InputNode in)" implementation i would like to test "in" for the presence of attributes.
the NodeMap returned does not have a "int size()" or "boolean isEmpty()"... i can go and test the iterator but not much sense...
what am i missing?
thank you, rui
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
-----Inline Attachment Follows-----
_______________________________________________
Simple-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simple-support
|