Re: Commons collection framework and generics?

2006-05-12 Thread Matt Benson
See http://collections15.sourceforge.net/ --- [EMAIL PROTECTED] wrote: Hello, Is there any plan to support JDK5 generics in the collection framework? Thanks, Andreas This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private

Re: [Beanutils] Determine type of bean field

2006-06-01 Thread Matt Benson
--- Craig McClanahan [EMAIL PROTECTED] wrote: On 6/1/06, Frank W. Zammetti [EMAIL PROTECTED] wrote: [SNIP] Ok, I'm with you so far... but what if you don't know the type of the target array until runtime? I need to dynamically determine the element type of the target array, then

RE: ListOrderedMap vs. LinkedHashMap

2006-06-21 Thread Matt Benson
LOM has API extensions that LinkedHashMap can't duplicate. Example: in commons-collections 3.2, put(int, Object, Object) was added to LOM, which allows you to insert a mapping at a particular position. There are others. -Matt --- [EMAIL PROTECTED] wrote: Thanks for the reply. So from a

Re: Is JXPath used and/or loved

2006-07-08 Thread Matt Benson
I have been using JXPath for a few months now and while I'm not sure I could call it love, I like it quite a bit. I don't know of any other package out there that lets me query an object graph... $0.02 -Matt --- Paul Copeland [EMAIL PROTECTED] wrote: The latest version (1.2) binary file has

Re: [collections] Re: Why doesn't Bag have a get() method?

2006-07-13 Thread Matt Benson
snicker --- Nentwig, Timo [EMAIL PROTECTED] wrote: Stephen Colebourne wrote: Get what? What method signature are you expecting? What is your use case? Well, get what I did add(). Get that what contains() is checking for. Get what getCount() is counting. - Original Message

Re: Is JXPath support Boolean?

2007-02-02 Thread Matt Benson
--- maomaode [EMAIL PROTECTED] wrote: Hi, I'm a new user of JXPath, my working env: JDK5, JXPath 1.2 I have a Nested bean class: Config.java which has a getter: CacheConfig getCache() { return this.cache; } The CacheConfig.java which has two getters: Boolean isEnable() {

Re: Is JXPath support Boolean?

2007-02-05 Thread Matt Benson
--- maomaode [EMAIL PROTECTED] wrote: Hi Matt , Thanks for reply. Yes, your alternative solutions definitely will work, But, I'm not sure it's a good idea to make the JXPath support Boolean? or do we have a plan to support Boolean? And anther related question is that, do we have a

Re: Collection usage in JXPath commons

2007-02-19 Thread Matt Benson
--- Neil Benn [EMAIL PROTECTED] wrote: Hello, I'm sorry to ask such a basic question but I have a use case where I receive a collection and want to access an element of that collection. I've tried several methods to get to an elements, iindexing and calling methods but to no

Re: Exception while setting values for Collection /ArrayList using JXpath

2007-02-20 Thread Matt Benson
Jyotsna, JXPath is designed such that nonexistent parts of the graph cannot be set directly. If you know that arr[0] might not exist yet, you must check for that condition explicitly and install a factory to create that part of the graph. My test code looks like this: OrganisationType t = new

Re: Re : [Commons Convert]

2007-02-20 Thread Matt Benson
Alex, who recently became a user, when I asked for his impressions: (QUOTING STARTS HERE) Re: InstantiatingReflector From: Ben Alex [EMAIL PROTECTED] - 2007-01-15 16:54 Hi Matt Matt Benson wrote: I have just committed your patch (with IIRC one spelling correction) to HEAD. Thanks. So how

Re: Re : [Commons Convert]

2007-02-20 Thread Matt Benson
--- Boris Unckel [EMAIL PROTECTED] wrote: Hello Matt, hello Adrian, Matt Benson wrote: --- Adrian Gonzalez [EMAIL PROTECTED] wrote: thanks for the tip ! I've checked the project documentation. Did you have any issues using Dozer ? (resolved with Morph) - If you have some I'm

Re: Calling a method with JXPath

2007-03-06 Thread Matt Benson
Neil: Please feel free to send a self-contained example to the list that triggers the problem you are seeing. br, Matt --- Neil Benn [EMAIL PROTECTED] wrote: Hello, Sorry that was the wrong code, I also tried it with : System.out.println(objContext.getValue(getName(.[1], 1)));

Re: XPath getValue(//item) for Map throws StackOverflowException

2007-03-22 Thread Matt Benson
Are you using version 1.2? This test passes for me in HEAD, so if you are using the release, it's probably a bug that has been fixed in the interim. Be on the lookout for a new release in the next month or two; of course you can use HEAD yourself as well. HTH, Matt --- Tim Pham [EMAIL

Re: JXPath API

2007-05-23 Thread Matt Benson
At first glance it appears this, or something similar, should be sufficient for what you want to do. Please assemble some sample code and explain where it is failing. Thanks, Matt --- Yuri Ushakov [EMAIL PROTECTED] wrote: Hello. I can't find a way, yet I think it should be possible to do

Re: [jxpath] namespace registration not remembered for JXPathContext.getRelativeContext

2007-05-23 Thread Matt Benson
I assume you're using JXPath 1.2 . This feature was implemented shortly after its release, so you can use it in the forthcoming 1.3 version. HTH, Matt --- David Smiley [EMAIL PROTECTED] wrote: Hi. JXPath is pretty darned cool by the way; thanks to all those who worked on it. Any way, I

RE: [commons-lang] elegant way to get version information from jar-filename

2007-06-22 Thread Matt Benson
--- Jörg Schaible [EMAIL PROTECTED] wrote: Hi Thomas, Wabner, Thomas (EXT) wrote on Friday, June 22, 2007 2:52 PM: Hi, I cannot find a nice way to get the version information from a jar filename with the help from commons-lang. I have a filename like

Re: Where can I download JXPath 1.3 ???

2007-06-22 Thread Matt Benson
--- Niall Pemberton [EMAIL PROTECTED] wrote: On 6/22/07, Mcduffey, Joe [EMAIL PROTECTED] wrote: Niall, Thanks. Does anyone know when 1.3 will be available for official release? Always difficult to say in open source - the most recent thread on that is here:

Re: Problem with JXPath 1.3 - Registering Namespaces

2007-07-22 Thread Matt Benson
Sorry I haven't gotten to check into this yet, and thanks for the help, Sergey! -Matt --- Sergey Vladimirov [EMAIL PROTECTED] wrote: Joe, Please, look at the following issue and fix :) http://issues.apache.org/jira/browse/JXPATH-97 -- Sergey 2007/7/16, Mcduffey, Joe [EMAIL

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-07-25 Thread Matt Benson
Joe: Did you test Sergey's patch or the latest 1.3 trunk as of Tuesday afternoon/evening? As of that time the svn trunk version worked for me against your submitted example. If not, please attach more code which shows how to break the current ns handling and reopen JXPATH-97 in JIRA. I'm