Re: Reflection Utils

2015-05-30 Thread Matt Benson
The recent release of Lang does provide a method to get fields with a particular annotation. Matt On May 30, 2015 7:27 AM, "Timo" wrote: > Thank you for the suggestions! > > Commons Weaver kind of has a way to do what I want, but it's... ehm... > woven with the rest of the project (e.g. Weavable

[ANNOUNCE] Apache Commons Weaver 1.2 Released

2016-02-04 Thread Matt Benson
The Apache Commons Team is pleased to announce the availability of: Apache Commons Weaver 1.2 Apache Commons Weaver provides an easy way to enhance compiled Java classes by generating ("weaving") bytecode into those classes. The release notes can be reviewed at: http://www.apache.org/dist/common

[ANNOUNCE] Apache Commons Weaver 1.3 Released

2016-10-18 Thread Matt Benson
The Apache Commons Team is pleased to announce the availability of: Apache Commons Weaver 1.3 Apache Commons Weaver provides an easy way to enhance compiled Java classes by generating ("weaving") bytecode into those classes. The release notes can be reviewed at: http://www.apache.org/dist/common

Re: [LANG] Object Merge Functionality

2016-11-30 Thread Matt Benson
There should be multiple existing open source Java libraries to do this type of thing. Shameless* plug: one such is my own https://github.com/mbenson/therian . Agree this is out of scope for [lang] and that [beanutils] would be more appropriate. Matt * Maybe there was a little shame. On Nov 29,

[ANNOUNCE] Apache Commons Weaver 2.0 released

2018-09-07 Thread Matt Benson
The Apache Commons Team is pleased to announce the availability of: Apache Commons Weaver 2.0 Apache Commons Weaver provides an easy way to enhance compiled Java classes by generating ("weaving") bytecode into those classes. The release notes can be reviewed at: http://www.apache.org/dist/common

Re: [collections] Adding a Table data structure?

2021-09-01 Thread Matt Benson
And how is the table type different from using e.g. a Commons lang Pair as the key of a basic Map? Matt On Tue, Aug 31, 2021, 11:42 PM Gary Gregory wrote: > What's missing from Guava's version that you want to add here? > > Gary > > On Tue, Aug 31, 2021, 20:55 Will Herrmann wrote: > > > I am w

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
Is it possible the proto message (I'm not familiar with this API) is built with internal recursive references, i.e. some child has a property that points, possibly indirectly, to its parent? That would be the most probable explanation, particularly as you say feeding jxpath the known absolute path

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
A next; > } > > On Sun, Sep 24, 2023 at 8:43 PM Matt Benson wrote: > > > Is it possible the proto message (I'm not familiar with this API) is > built > > with internal recursive references, i.e. some child has a property that > > points, possibly indirectly, t

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
Well, to be clear, you can have linked nodes. But if N had both `next` and `previous` members is where you'd run into trouble. On Sun, Sep 24, 2023 at 12:22 PM Matt Benson wrote: > If you're doing a search down the tree you'd need some way to keep JXPath > from traversin

Re: Jxpath getting stuck on trying to do a getValue

2023-09-24 Thread Matt Benson
loop? > > On Sun, 24 Sep, 2023, 22:54 Matt Benson, wrote: > > > Well, to be clear, you can have linked nodes. But if N had both `next` > and > > `previous` members is where you'd run into trouble. > > > > On Sun, Sep 24, 2023 at 12:22 PM Matt Benson > w

Re: Jxpath getting stuck on trying to do a getValue

2023-09-25 Thread Matt Benson
; public link like in GitHub, etc. Is there a way to do that? > > On Mon, 25 Sep, 2023, 01:10 Matt Benson, wrote: > > > TBH I'm somewhat surprised it doesn't already, but I haven't actually > > ran/debugged your example. > > > > On Sun, Sep 24, 2023 at

Re: [LANG3] Issue with TypeUtils.isAssignableTo() using JDK ParameterizedType

2024-05-30 Thread Matt Benson
I am confused as to what could be wrong with determining that Container is *not* assignable to Container. But are you saying that the manually constructed parameterized Type *is* reported as being assignable despite the obviously incompatible type parameters? Matt On Thu, May 30, 2024, 10:31 AM S

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-07-25 Thread Matt Benson
n in svn trunk. If you can verify this, I'd appreciate it. > HELP! If you don't mind some helpful advice in the way of protocol, all-caps shouts of "HELP" will generally not help your cause. This subject, among others, is covered in the document http://www.catb

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-07-26 Thread Matt Benson
over a year. During this time a leading XML guru, Elliotte Rusty Harold (http://www.cafeconleche.org), was able to convince all concerned that JXPath would be more true to the XPath 1.0 spec _not_ to implement this XPath 2.0-specific behavior, and furthermore that this was the correct thing to

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-07-26 Thread Matt Benson
x27;t an active resource on it. I honestly never noticed this outdated API was on the site. Let me see what I can do about moving that. Sorry for the inconvenience. -Matt > > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 26, 2007

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-07-25 Thread Matt Benson
> your example then executing the following: > - createPathAndSetValue(element/@A:attribute); > > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 25, 2007 11:15 AM > To: Jakarta Commons Users List > Subject: RE: Problem with JXPa

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-08-08 Thread Matt Benson
, Joe. It's more a case of "what is the deal with attributes?" It just so happens that a DOM or JDOM element node knows how to set its attributes. Not so for elements. In this case you must implement and set an AbstractFactory on your JXPathContext. HTH, Matt > > -Origi

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-08-08 Thread Matt Benson
to create than Java objects, and that, like as in the case of attributes, JXPath's DOM/JDOM implementations should support this. Hmm... -Matt > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 08, 2007 1:46 PM > To: Jakarta Co

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-08-08 Thread Matt Benson
that XML elements are more straightforward to > create than Java objects, and that, like as in the > case of attributes, JXPath's DOM/JDOM > implementations > should support this. > > Hmm... > > -Matt > > > -Original Message- >

RE: Problem with JXPath 1.3 - Registering Namespaces

2007-08-08 Thread Matt Benson
rform an XPath > Query to obtain a result set > > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 08, 2007 2:53 PM > To: Jakarta Commons Users List > Subject: RE: Problem with JXPath 1.3 - Registering > Namespaces > > >

Re: XPathFactoryFinder.

2007-08-09 Thread Matt Benson
Hello, I don't see which, if any, Apache Commons component your stacktrace refers to. Are you sure you have the right list? br, Matt --- david2 <[EMAIL PROTECTED]> wrote: > > We have a Web Services Notification application that > uses Muse, Xalan, and > XML commons (we have tried both xml-a

Re: XPathFactoryFinder.

2007-08-09 Thread Matt Benson
--- david2 <[EMAIL PROTECTED]> wrote: > > I thought xml-apis.jar was a product of Apache > commons XML. Is this so, or > does it belong to Xalan (or something else)? > :) Sorry for the confusion. XML Commons is a subproject of the XML TLP (Top-Level-Project) at the ASF. http://xml.apache.or

Re: JXPath unexplained behaviour

2007-10-10 Thread Matt Benson
--- "Singh, Rupinder" <[EMAIL PROTECTED]> wrote: > Can somebody explain the unusual behaviour in the > following code. The > selectNodes method does not match anything but > selectSingleNode does > return the correct node for the same jxpath query. > Are these two method > supposed to behave diff

Re: JXPath unexplained behaviour

2007-10-10 Thread Matt Benson
will leave the bug report open, however, because the fact that selectSingleNode() behaved the way you wanted it to is the actual bug (as I suspected might be the case). :) -Matt --- Matt Benson <[EMAIL PROTECTED]> wrote: > > --- "Singh, Rupinder" > <[EMAIL PROTECTED]>

Re: how it works jxpathcontext removeall?

2007-12-31 Thread Matt Benson
--- liumin HU <[EMAIL PROTECTED]> wrote: > hi everyone, > > I use jxpath to manage an ArrayList of bean, the > Context is created like: JXPathContext > context=JXPathContext.newContext(list); > > When I want to delete some objects in the arraylist, > i used context.removeall, but it doesn't wo

Re: [jxpath] Using JXPATH for dates

2008-01-14 Thread Matt Benson
Hi, To be quite honest I'm not sure where the "xs:" portions of your example, and question, are coming from. Maybe if you provide a little more basic detail to describe how you got to the point you're at with JXPath, the list could be of more help. -Matt --- "Desai, Jasmina" <[EMAIL PROTECTED]

RE: [jxpath] Using JXPATH for dates

2008-01-15 Thread Matt Benson
he string to java.util.date to > make the actual jxpath > query? > > > > Thanks > Regards, > Jasmina > > Programmer Analyst, Sr > Direct: (858) 651-1132 > Ext: 11132 > > -Original Message- > From: Desai, Jasmina > Sent: Monday, Januar

Re: [jxpath] Test null properties

2008-01-17 Thread Matt Benson
Note the subject change; on the Commons mailing lists the subject line should be prefaced by the bracket-delimited component name. --- Jasmina Desai <[EMAIL PROTECTED]> wrote: > Hi, > > I have several objects of an objectwhich I need to > filter using JXPATH by checking a particular > property >

Re: Filter properties when BeanUtils.copyProperties

2008-01-19 Thread Matt Benson
This is a little late, but Morph at sf.net is another object transformation project similar to Dozer with a different architecture, that comes with DynaBean support. If you try the current (old) release and have any problems don't hesitate to ask on the mailing lists for help or info. -Matt ---

Re: [JXPath] circular object graphs

2008-01-25 Thread Matt Benson
--- Warren Liang <[EMAIL PROTECTED]> wrote: > Hi all, > > How does JXPath handle circular object paths? My > object graph is can > have circular references to objects that are the > same instance (i.e. > obj1 == obj2), or are different instances but have > equivalent values > (i.e. obj1.equals(

Re: [JXPath] circular object graphs

2008-01-25 Thread Matt Benson
pefully, I'll be able to implement a breadth first > search by > customizing NodeIterator (I hope that's the right > hook). > If you come up with anything interesting, feel free to post it on the Wiki. br, Matt > Thanks, > > Warren > > On Jan 25, 2008 9:50 A

Re: JXPath and Collections

2008-02-06 Thread Matt Benson
--- Jeffrey Puro <[EMAIL PROTECTED]> wrote: > I have a pojo that has the following properties: > Looks like a set is unsupported. :( Could you possibly use some kind of wrapper object, possibly returning asList() from a commons-collections ListOrderedSet from a getSetAsList() method or someth

RE: [JXPath] and Collections

2008-02-07 Thread Matt Benson
); context.createPathAndSetValue("/list[" + (listSize + 1) + "]", "bar"); HTH, Matt > > Thanks, > > Jeff > > -Original Message- > From: Matt Benson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 06, 2008 3:55 PM >

[launcher] basedir problem WAS Re: commons launcher

2008-03-14 Thread Matt Benson
>From a cursory look at [launcher], it looks like you probably want to add the basedir as a system property using a nested sysproperty in your launch task, or something. -Matt --- acec acec <[EMAIL PROTECTED]> wrote: > In my java application, I try to get basedir from > launcher.xml > > > >

Re: [JXPath] Can JXPath be combined with Xalan for processing templates?

2008-03-20 Thread Matt Benson
--- Rodrigo Ru’iz <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I would like to apply an XSLT transformation on an > internal object > structure, instead of a DOM. Is there a way to do > this with JXPath and > Xalan (or any other XSLT engine)? I can't think how to do this with JXPath. Jaxen

Re: [JXPath] JAXP compliance

2008-03-20 Thread Matt Benson
--- Rodrigo Ru’iz <[EMAIL PROTECTED]> wrote: > Hi all, > > Is JAXP compliance in the project roadmap? > > Cheers, > Rodrigo > The Commons community has in fact voted to accept a code donation which provides support for the relevant parts of the JAXP spec. This is on hold until after JXPath 1

Re: [jxpath 1.2] Why does InfoSetUtil.booleanValue method handle strings in the manner that it does???

2008-04-10 Thread Matt Benson
--- Tom Muldoon <[EMAIL PROTECTED]> wrote: > Can anyone explain why the > InfoSetUtil.booleanValue(Object object) method > returns true when the object is a String if and only > if it is a non-zero length string? Here's a code > excerpt ... > > else if (object instanceof String) { >

Re: bidimap with multiple value occurence

2008-04-17 Thread Matt Benson
--- Nazar Stasiv <[EMAIL PROTECTED]> wrote: > Hello, > I want to ask about elegant way to store key,value > pairs into bidimap where > value has many occurrences. It is known that if map > stores key,value pair > into existing key bucket old value is replaced with > new one. > Now when it comes t

Re: Is JXPath project abandoned?

2008-05-19 Thread Matt Benson
For the most part this project is in maintenance mode. There's not a wealth of interest/expertise on adding new features, but the community is committed to seeing through the original goal of providing a compatible implementation of XPath 1.0. JXPath 1.3 should be released in the relatively near

Re: [jxpath] JXPath 1.3 Status

2008-06-30 Thread Matt Benson
Yes, JXPath 1.3 has actually had three release candidates cut; a fourth should come very soon. So JXPath 1.3 should be released sometime in July. -Matt --- Matt Accola <[EMAIL PROTECTED]> wrote: > Is JXPath still an active project? I see the last > release was 1.2 in > August 2004. I see 46 o

Re: [JXPATH] getting Containers in iteration (additional info)

2008-08-18 Thread Matt Benson
--- Harald Finster <[EMAIL PROTECTED]> wrote: > Hello again, > > I would just like to add an other observation: > > If I add > Map map ; > to my 'Book', I get the 'expected' result for the > map property , > i.e. iterating with "/*" as XPath results in the > following: > > title = "Book

Re: BeanUtils copyProperties with null Date

2008-10-03 Thread Matt Benson
--- Hanson Char <[EMAIL PROTECTED]> wrote: > Or as a comparison, you can achieve the copying via > BeanPopulator of > beanlib, and it would just work. See sample code > below. > > > http://sourceforge.net/project/showfiles.php?group_id=140152 > > Cheers, > Hanson > > import java.util.Date;

Fwd: [Urgent] Please help promote ApacheCon video streaming!

2008-11-04 Thread Matt Benson
--- Lars Eilebrecht <[EMAIL PROTECTED]> wrote: > Date: Tue, 4 Nov 2008 10:27:25 -0600 > From: Lars Eilebrecht <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [Urgent] Please help promote ApacheCon > video streaming! > > Hi, > > please help promote the ApacheCon live video > streaming by

Re: [vfs] Copying byte[] to destination file

2009-01-23 Thread Matt Benson
Note that I have added the component ID to the subject line: I'm not sure I entirely understand the question. If I wanted to copy a byte[] to a VFS FileObject I would use commons-io IOUtils to copy the byte[] to fileObject.getContent().getOutputStream(). Does this help? -Matt --- "Walter, Patr

RE: [vfs] Copying byte[] to destination file

2009-01-23 Thread Matt Benson
correct (beyond that I would, as I stated before, use some sort of buffering strategy in the write such as that employed by IOUtils' copy(..) methods). -Matt > > thanks > > > > > -Original Message- > From: Matt Benson [mailto:gudnabr...@yahoo.com] > Sen

RE: [vfs] Copying byte[] to destination file

2009-01-23 Thread Matt Benson
ike > writeContent(byte[] data, > java.io.OutputStream outstr) or > writeContent(byte[] data, FileObject out) > > What does VFS have for buffering? Nothing I can see, but again, I don't have any particular expertise with the API. -Matt > > thanks > > > > -Original Me

Re: JXPath - is JXPath dead in the water?

2009-02-02 Thread Matt Benson
--- Andrew Hughes wrote: > Hi All, > Is JXPath dead in the water? I can't find a post > here in 2009 and very > limited posts in 2008. Hi Andrew, JXPath is considered to be in "maintenance mode." In general, this means that this component is considered to be more or less "complete" and that

Re: JXPath - is JXPath dead in the water?

2009-02-02 Thread Matt Benson
--- Adrian Mitev wrote: > On Mon, Feb 2, 2009 at 5:10 PM, Matt Benson > wrote: > > > > --- Andrew Hughes wrote: > > > >> Hi All, > >> Is JXPath dead in the water? I can't find a post > >> here in 2009 and very > >> limited pos

Re: JXPath over Generic Collection, How?

2009-02-08 Thread Matt Benson
Most likely your problem is not with generics, but simply with the fact that JXPath has a hard time using a collection as its root. The easiest workaround is to use some parent object to hold a reference to your container. HTH, Matt --- On Sun, 2/8/09, Andrew Hughes wrote: > From: Andrew H

Re: JXPath over Generic Collection, How?

2009-02-10 Thread Matt Benson
erarchyPojo() > {return hierarchyPojo;} > >> > >> > >> public void setHierarchyPojo(HierarchyPojo > hierarchyPojo) > >> {this.hierarchyPojo = hierarchyPojo;} > >> > >> > >> } > >> > >> > >> Finally in

Re: JXPath over Generic Collection, How?

2009-02-10 Thread Matt Benson
> (and the children are allowed to be non-unique). > This is equivalent to an XML element as it can contain > multiple child > elements, how do these guy's handle it I wonder? > > --Andrew > > > On Wed, Feb 11, 2009 at 9:09 AM, Matt Benson > wrote: > &g

Re: [JXPath] Set a property in the whole graph

2009-02-11 Thread Matt Benson
String xpath = "descendant-or-self::id"; for (Iterator it = context.iteratePointers(xpath); it .hasNext();) { it.next().setValue(null); } HTH, Matt --- On Wed, 2/11/09, Adrian Mitev wrote: > From: Adrian Mitev > Subject: [JXPath] Set a property in the whole graph > To: user@common

Re: JXPath over Generic Collection, How?

2009-02-11 Thread Matt Benson
rew Hughes > wrote: > > > Yeah, that makes sense. The part that was confusing me > is that if I > > have... > > > > public class Thing { > > > >private List children; > > > > } > > > > I was assuming I would need to prefix al

Re: [beanutils] converting HTTP params into an arbitrary object model

2009-02-23 Thread Matt Benson
--- On Sat, 2/21/09, Adam Hardy wrote: > From: Adam Hardy > Subject: [beanutils] converting HTTP params into an arbitrary object model > To: user@commons.apache.org > Date: Saturday, February 21, 2009, 2:04 PM > I have spent a day researching and > prototyping with various open-source options a

Re: JXPath over Generic Collection, How?

2009-02-23 Thread Matt Benson
animal.set("dog",0,dog); > >> animal.set("cat",0,cat); > >> dog.set("labrador",0,labrador); > >>  dog.set("boxer",0, boxer); > >> cat.set("tiger",0,tiger1);//duplicate > >>  cat.set("tiger",1,tiger

Re: JXPath over Generic Collection, How?

2009-02-23 Thread Matt Benson
t working, but [name='foo'] is working for me. I will try to make some time to research the combination of attributes and dynabeans to see if I can tell you why it shouldn't work, or fix it if it turns out that it should in fact work. HTH, Matt --- On Mon, 2/23/09, Matt

Re: JXPath over Generic Collection, How?

2009-02-23 Thread Matt Benson
To follow up, the 'name' attribute in particular is what doesn't seem to be working here (change it to e.g. 'game' and it works fine)... if you could file a bug it would help me remember as I don't have time to do it myself right this minute. -Matt --- On Mo

Re: JXPath over Generic Collection, How?

2009-02-23 Thread Matt Benson
r to a property whose name literally is "name", you must treat it as a child element rather than an attribute. So in your case you could either change "name" to "title" and query [...@title='foo'] or simply use [name='foo']. Regards, Matt --- On

Re: JXPath over Generic Collection, How?

2009-02-23 Thread Matt Benson
> } > public static void runEvaluation(String > expression,JXPathContext context){ > log.info("About to evaulate the expression: "+expression); >         try { > Object value = context.getValue(expression); > //we got a single result. > if (value instanceof LazyDynaBean

Re: [beanutils] converting HTTP params into an arbitrary object model

2009-02-24 Thread Matt Benson
--- On Tue, 2/24/09, Adam Hardy wrote: > From: Adam Hardy > Subject: Re: [beanutils] converting HTTP params into an arbitrary object model > To: "Commons Users List" > Date: Tuesday, February 24, 2009, 3:19 AM > Matt Benson on 23/02/09 16:23, > wrote: > --- On

Re: JXPath over Generic Collection, How?

2009-03-04 Thread Matt Benson
> >> > >> > >> > >> > >> My Code VERBATIM > >> > >>  package rnd; > >> > >> import java.util.ArrayList; > >> > >> import org.apache.commons.beanutils.LazyDynaBean; > >> import org.apache.commons.jxpath.JXPat

Re: JXPath over Generic Collection, How?

2009-03-04 Thread Matt Benson
whirl. -Matt --- On Wed, 3/4/09, Matt Benson wrote: > From: Matt Benson > Subject: Re: JXPath over Generic Collection, How? > To: "Commons Users List" > Date: Wednesday, March 4, 2009, 7:57 AM > > Hi Andrew, >   I agree that going through the list of properties >

Re: JXPath over Generic Collection, How?

2009-03-11 Thread Matt Benson
turns > the first() dog (BOXER) only. I am unsure if this in an > unrealistic > requirement of JXPath and also where should I look to > possibly 'fix' this if > it indeed would compliment the current features? > > > Thanks HEAPS! > > > > > On Th

Re: [JXPath][BeanUtils] External Bean PropertyDescriptor?

2009-03-17 Thread Matt Benson
Possibly you can get some love registering a DynamicPropertyHandler class via JXPathIntrospector.registerDynamicClass(...). -Matt --- On Mon, 3/16/09, Andrew Hughes wrote: > From: Andrew Hughes > Subject: [JXPath][BeanUtils] External Bean PropertyDescriptor? > To: "Commons Users List" > Dat

Re: [JXPath] Whitespace in Expression/Property

2009-03-17 Thread Matt Benson
Maybe /Earth/Australia/@name='New South Wales']/Sydney? :| -Matt --- On Mon, 3/16/09, Andrew Hughes wrote: > From: Andrew Hughes > Subject: [JXPath] Whitespace in Expression/Property > To: "Commons Users List" > Date: Monday, March 16, 2009, 11:42 PM > Hi Again, > How can I access a pro

Re: [ANN] commons-exec 1.0 released

2009-03-26 Thread Matt Benson
Great job seeing this through, Siegfried! -Matt --- On Thu, 3/26/09, Siegfried Goeschl wrote: > From: Siegfried Goeschl > Subject: [ANN] commons-exec 1.0 released > To: "Jakarta Commons Developers List" , "Jakarta > Commons Users List" > Date: Thursday, March 26, 2009, 1:34 PM > The commons

Re: commons-apache-jxpath: TestCase entry point

2009-04-09 Thread Matt Benson
There really isn't one. You simply run the testcases en masse... in what context are you trying to run the tests? -Matt --- On Thu, 4/9/09, Sullivan, Angela wrote: > From: Sullivan, Angela > Subject: commons-apache-jxpath: TestCase entry point > To: user@commons.apache.org > Date: Thursday,

RE: commons-apache-jxpath: TestCase entry point

2009-04-16 Thread Matt Benson
> now as it's > changed. I can't see what's it changed to. > > > Thanks > Angela > > > > -Original Message- > From: Matt Benson [mailto:gudnabr...@yahoo.com] > > Sent: Thursday, April 09, 2009 7:09 PM > To: Commons Users List > Subjec

Re: [JXPath] Custom Functions & the Current Pointer

2009-04-21 Thread Matt Benson
Hi, Andrew. Your example looks pretty good... what happens exactly when you try it? -Matt --- On Mon, 4/20/09, Andrew Hughes wrote: > From: Andrew Hughes > Subject: [JXPath] Custom Functions & the Current Pointer > To: "Commons Users List" > Date: Monday, April 20, 2009, 11:31 PM > Hi ther

Re: [JXPath] Custom Functions & the Current Pointer

2009-04-22 Thread Matt Benson
  } > } > > > And to complete this, the Java function needs to be set in > the > JXPathContext... (don't forget the package string > terminating "."): > > JXPathContext.setFunctions(new > PackageFunctions("com.blah.whatever.project.", > "mynamespace

Re: [JXPath] Iterators and Pointers (on partial matches)

2009-06-04 Thread Matt Benson
Hi Andrew, I'm not sure if JXPath is necessarily really the right tool for this. This almost just looks like a sort of hierarchical lookup. I have a HierarchyTable we use at my $work for these type purposes; unfortunately I haven't yet gotten clearance to release it into the wild. I plan s

Re: [JXPath] Iterators and Pointers (on partial matches)

2009-06-05 Thread Matt Benson
> > > I've had a look at the compiled expressions and parser's on > the RI but I > can't see anything that would allow me to do this > :'( Hopefully I am > missing something. > > THANKS HEAPS FOR THE RESPONSE > --Andrew > > > On

Re: FaltFile.jar

2010-01-05 Thread Matt Benson
FWIW, there is a [flatfile] M2 snapshot published at repository.apache.org. -Matt On Jan 5, 2010, at 6:44 AM, Ben Short wrote: Hi, The project page [1] says that the code is unreleased. So you will need to build it yourself. The instructions are here [2]. Ben [1] http://commons.apache.or

Re: collections 3.3 SNAPSHOT ?

2010-01-05 Thread Matt Benson
It would probably be collections 4.0 and there hasn't yet been a snapshot published, due to the as-yet unresolved questions of package renaming, etc. -Matt On Jan 5, 2010, at 5:31 AM, nicolas de loof wrote: Hi I'd like to use commons-collection 3.3 SNAPSHOT (to get Java5 syntax support) b

Re: [Collections] Generics Support

2010-02-10 Thread Matt Benson
Much work has been done on the [collections] trunk; however noone has had time to finish it all up for a release. Searching the d...@commons.apache.org archives may give you an idea of what remains (off the top of my head, I can only think of the task of addressing all JIRA issues filed fo

Re: XLink support in JXPath?

2010-03-18 Thread Matt Benson
On Mar 17, 2010, at 9:31 PM, Farrukh Najmi wrote: Hi Guys, Does JXPath support processing of xlink simple links? Thanks for any pointers on how to process documents with simple xlinks using JXPath. No, I'm afraid JXPath contains no XLink support. Is it specified anyplace that an XPat

Re: [Commons Math] Curious about Apache Commons Math

2010-03-19 Thread Matt Benson
Can you provide examples of advantages of using an automobile in preference to your provided feet? ;P -Matt On Mar 19, 2010, at 5:27 PM, Martin Gainty wrote: Bienvenue Luc! can you provide examples of any advantages of using Apache Math project over the provided java.Math library? Mer

Re: Adapting legacy request parameters into new POJO?

2010-04-12 Thread Matt Benson
On Apr 11, 2010, at 5:28 PM, Mick Knutson wrote: I have an interesting issue I am trying to solve in a manageable way. I have a few dozen legacy JSP's that I am phasing out. But I have to do them 1by1. Each page create a POST of ~12 named request parameters that are ALL named different. V

Re: Adapting legacy request parameters into new POJO?

2010-04-12 Thread Matt Benson
p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://www.baselogic.com Blog: http://www.baselogic.com/blog/ Linked IN: http://linkedin.com/in/mickknutson Twitter: http://twitter.com/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Mon, Apr 12, 2010 at 10:34 AM, Matt B

Re: Adapting legacy request parameters into new POJO?

2010-04-15 Thread Matt Benson
Notwithstanding that I find the previous post confusing on many levels, I would discourage this thread from continuing on the Commons list(s), despite the fact that I am the one who brought it up. Morph is not a Commons project and has its own lists. -Matt On 4/14/10, Martin Gainty wrote: > > H

Re: RFC: Line Ending Conversion between Unix and Windows ....

2010-04-20 Thread Matt Benson
Echoing Sebastian, a possibility would be to port Ant's FixCrlfFilter (implements java.io.FilterReader) to [io]. Quite some changes would be needed, but this code has at least been heavily tested. -Matt On Apr 19, 2010, at 12:16 PM, Siegfried Goeschl wrote: Hi folks, I just had to type s

Re: how much JXPath 1.3 is compliant with XPath 2.0

2010-04-20 Thread Matt Benson
On Apr 20, 2010, at 4:23 AM, Nicolas Hernandez wrote: Dear JXPath users, does someone know how much JXPath 1.3 is compliant with XPath 2.0 ? JXPath does not attempt to support anything that is specific to XPath 2.0. Does JXPath handle operators such as 'union', 'intersect', 'except' ? Fu

Re: [beansutils] copyProperties when property names are different?

2010-08-18 Thread Matt Benson
I didn't want to say anything, but I can't in good conscience let somebody use Dozer without at least knowing Morph exists: http://morph.sourceforge.net . -Matt On Aug 18, 2010, at 2:42 AM, janne postilista wrote: > Thanks. dozer seems great for my needs. > > On Tue, Aug 17, 2010 at 5:40 PM,

Re: [jxpath] how to get map key values?

2011-03-29 Thread Matt Benson
On Tue, Mar 29, 2011 at 10:13 AM, wrote: > I am using a thirdparty library that is handing me a map. I have been using > jxpath to fish values out of nested structures in the map values but now > I need to know the map *key* values. I know how to get the *entries*, but the > finding out th

Re: [jxpath] Navigating across Lists

2011-05-16 Thread Matt Benson
On Mon, May 16, 2011 at 4:51 AM, Romain Rouvoy wrote: > Hi, > > I'm using JXPath to query a graph of beans, which are heavily using lists, > e.g.: >> public class A { >>       List getB() {...} >> } >> >> public class B { >>       String getName() {...} >>       List getC() {...} >> } >> >> publi

Re: [jxpath] Navigating across Lists

2011-05-16 Thread Matt Benson
On Mon, May 16, 2011 at 2:16 PM, Romain Rouvoy wrote: > On 16 mai 2011, at 16:06, Matt Benson wrote: >> On Mon, May 16, 2011 at 4:51 AM, Romain Rouvoy wrote: >>> I'm using JXPath to query a graph of beans, which are heavily using lists, >>> e.g.: >>&g

Re: [jxpath] Navigating across Lists

2011-05-16 Thread Matt Benson
On Mon, May 16, 2011 at 3:01 PM, Romain Rouvoy wrote: > On 16 mai 2011, at 21:38, Matt Benson wrote: >> On Mon, May 16, 2011 at 2:16 PM, Romain Rouvoy wrote: >>> On 16 mai 2011, at 16:06, Matt Benson wrote: >>>> On Mon, May 16, 2011 at 4:51 AM, Romain Rouvoy >

Re: [jxpath] Navigating across Lists

2011-05-16 Thread Matt Benson
On Mon, May 16, 2011 at 3:22 PM, Romain Rouvoy wrote: > On 16 mai 2011, at 22:10, Matt Benson wrote: >> On Mon, May 16, 2011 at 3:01 PM, Romain Rouvoy wrote: >>> On 16 mai 2011, at 21:38, Matt Benson wrote: >>>> On Mon, May 16, 2011 at 2:16 PM, Romain Rouvoy &g

Travel Assistance applications open for ApacheCon North America 2011

2011-06-06 Thread Matt Benson
The Apache Software Foundation (ASF)'s Travel Assistance Committee (TAC) is now accepting applications for ApacheCon North America 2011, 7-11 November in Vancouver BC, Canada. The TAC is seeking individuals from the Apache community at-large --users, developers, educators, students, Committers, an

Fwd: Reminder: TAC Assistance to ApacheCon NA 2011 closes July 8th

2011-07-03 Thread Matt Benson
-- Forwarded message -- From: Gavin McDonald Date: Sat, Jul 2, 2011 at 7:16 PM Subject: Reminder: TAC Assistance to ApacheCon NA 2011 closes July 8th To: p...@apache.org PMCs, please re-post this reminder to your user and dev lists and anywhere else you see fit. - Hi All,

Re: [jxpath] Passing casting information within a path-based setter?

2011-07-29 Thread Matt Benson
Quick potential suggestions: - Set some property on the parent, and query it in your factory - Subclass TheObject and override the dataArray accessors to TheChild[] - Use a different factory instance that does what you want Matt On Fri, Jul 29, 2011 at 6:17 PM, Hippo Man wrote: > I'm fairly new

Re: [jxpath] JXPath 1.4 release date

2011-08-16 Thread Matt Benson
Hi, Martin. No concrete plans as yet, but keep prodding and we'll see what can be done. :) Matt On Tue, Aug 16, 2011 at 8:25 AM, mainz...@bluewin.ch wrote: > Hello > > First of all: Thanks for JXPath, it is a wonderful library that helps us a > lot! > > I wanted to ask whether there > are alr

Re: [jxpath] Issue in retrieving value jxpath

2011-09-23 Thread Matt Benson
On Wed, Sep 21, 2011 at 9:54 AM, Shamik Bandopadhyay wrote: > Hi, > >  I'm having an issue in parsing the following XML using jxpath. Here's the > sample XML. > >   > http://www.w3.org/2005/Atom"; xmlns:media=" > http://search.yahoo.com/mrss/"; xmlns:openSearch=" > http://a9.com/-/spec/opensearchr

Re: commons lang3: NullArgumentException missing?

2011-12-22 Thread Matt Benson
On Wed, Dec 21, 2011 at 3:41 PM, Karsten Wutzke wrote: > Wow, the Java/JDK is getting dirtier and dirtier with every release. The code > >  public Foo(Bar bar) { >     this.bar = Objects.requireNonNull(bar); >  } > looks really really awful to me. As opposed to this.bar = Validate.notNull(bar) fr

Re: [FUNCTOR] Location for source?

2012-01-03 Thread Matt Benson
On Tue, Jan 3, 2012 at 10:16 AM, Ed Beaty wrote: > Hi, all.  Is the Commons Functor source still available for download, or has > it been pulled in preparation for a formal release?  Currently (3 Jan 2012) > none of the links  (http://commons.apache.org/functor/download_functor.cgi or > http://

Re: Class metadata repository

2012-02-18 Thread Matt Benson
Hi Chas, Some of us have been planning to work on a component of this type. Some of Simone Tripodi's ideas are in the [meiyo] sandbox project; the [classscan] sandbox area has also been reserved, but we haven't yet added anything here. Feel free to join in/start the discussion and submit patches

Re: [math] is 3.0 available via a public repository?

2012-03-26 Thread Matt Benson
http://search.maven.org/#artifactdetails%7Corg.apache.commons%7Ccommons-math3%7C3.0%7Cjar On Mon, Mar 26, 2012 at 5:11 PM, billy bob wrote: > The most recent version currently on maven central is 2.2.  Any idea when 3.0 > will be available? > > > -

Re: [jxpath] - Error trying to query boolean values

2012-07-03 Thread Matt Benson
Have you tried "/isUsaResident"? Javabean property names typically begin with lower case. HTH, Matt On Tue, Jul 3, 2012 at 4:41 PM, Lucas Reginato wrote: > Hi, > > > > I’m facing a strange behavior using xPath to query boolean values. > > Every time I tried to query boolean values with xPath, I

Re: [jxpath] - Error trying to query boolean values

2012-07-03 Thread Matt Benson
t; Did you see the java code that was generated? > Maybe if the is methods where change to get method, will it work? > > -Lucas > > On Tue, Jul 3, 2012 at 6:55 PM, Matt Benson wrote: >> >> Have you tried "/isUsaResident"? Javabean property names typically >&

Re: [jxpath] - Error trying to query boolean values

2012-07-05 Thread Matt Benson
ttp://commons.apache.org/jxpath/users-guide.html#Standard_Extension_Functions > > Do you think it's possible to file a new issue for this? > > -Lucas > > > On Tue, Jul 3, 2012 at 10:33 PM, Matt Benson wrote: >> >> Good call; yes, being an Object Boolean

  1   2   >