[BeanUtils] ConvertUtils changes

2002-03-29 Thread Stephen Colebourne
Hi, I have been examining the beanutils Convertor/ConvertUtils classes with a view to using them instead of the type convertor code I have written: http://www.scolebourne.eurobell.co.uk/JodaTypeConvertor.zip Currently I have found the following differences: 1) The Joda type convertor is called

Re: [BeanUtils] ConvertUtils changes

2002-03-30 Thread Stephen Colebourne
I think it is possible to add more methods for ConvertUtils like method useful for DynamicProxy : Does this mean you think ConvertUtils should be broken out from beanutils into its own commons area? I am not sure it is good to have a lot of small packages.I have no ideas abaut

[Collections] TreeNode, TreeIterator, IdentityHashSet proposal

2002-03-30 Thread Stephen Colebourne
Hi, As part of the Joda project (www.joda.org) I have developed the following collections that I would like to propose for inclusion in Apache commons collection: 1) TreeNode, ArrayTreeNode and TreeIterator http://www.scolebourne.eurobell.co.uk/JodaTreeProposal.zip There are no curent unit tests

Re: [Collections] TreeNode, TreeIterator, IdentityHashSet proposed collections

2002-03-30 Thread Stephen Colebourne
A rough sketch of the interface, which admittedly follows the architecture of my own implementation more than yours, would be like: public interface Tree extends Collection { /** Throws an exception if the parent isn't in the Tree already. */ boolean add(Object parent, Object child);

Re: [Collections] TreeNode, TreeIterator, IdentityHashSet proposed collections

2002-03-31 Thread Stephen Colebourne
Thus my TreeNode class corresponds most closely to the TreeEntry class of yours, not Tree. Which suggests the right approach to take is to leave TreeNode as it is, and consider whether to make an implementation of Tree that uses TreeNode for its guts. This was kind of where I was

Re: [Collections] TreeNode, TreeIterator, IdentityHashSet proposed collections

2002-04-01 Thread Stephen Colebourne
It looks like ArrayTreeNode expects users to access and manipulate the children of a node by returning a List from getChildren(), which users then use to add, delete, and access the child nodes. I don't think this follows best practices as seen in the java.util collections and other commons

Re: [Collections] TreeNode, TreeIterator, IdentityHashSet proposed collections

2002-04-06 Thread Stephen Colebourne
Related to this is the question of hashCode and equals methods. (The other type of collection is a Set, which needs a hashCode). So far, my view is to use the == check for equals and the identity hashCode (ie. don't implement either method). These sounds better than the alternatives you

Re: [Question] Betwix JAXB

2002-04-09 Thread Stephen Colebourne
This is true, Joda also performs Java-XML mappings. And like Betwixt it is not intended for use starting from just any old XML. (Java is king, XML is just a data format). Joda got written because I could find no alternative that met my requirements. JAXB is XML focussed, I needed a Java focussed

Re: [BeanUtils] PropertyUtils and DynaBeans (getPropertyDescriptors)

2002-04-12 Thread Stephen Colebourne
I've just spent the evening trying to figure out the property descriptor classes myself. For the joda project I wanted to return a BeanInfo specifying a description of the bean. But it seems to be a bit tricky. PropertyDescriptor is OK for my needs (just about) IndexedPropertyDesciptor is not

Re: [BeanUtils] PropertyUtils and DynaBeans (getPropertyDescriptors)

2002-04-13 Thread Stephen Colebourne
of the Bean spec (though I don't see mapped properties in the bean spec :), and to carry it out seems that these collection type uses need to be manually handled. Use PropertyUtils and you'll get at your Lists. Arron. Stephen Colebourne wrote: I've just spent the evening trying to figure out

Re: [BeanUtils] PropertyUtils and DynaBeans (getPropertyDescriptors)

2002-04-18 Thread Stephen Colebourne
) From: James Strachan [EMAIL PROTECTED] - Original Message - From: Stephen Colebourne [EMAIL PROTECTED] This is what I was getting at. If DynaBeans were to become used as the main interface (instead of PropertyUtils), then DynaBeans would need to support this notation

[Collections][SUBMIT] TypedList

2002-04-21 Thread Stephen Colebourne
Hi, After a quick check, I could find no implementation of a type checking list in collections. As I needed it, I have created one. Here is the class javadoc: * TypedList is a list wrapper that supports type checking. Only elements * of the specified type (or a subclass) can be added to the

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
From: Henri Yandell [EMAIL PROTECTED] What is the point of the wrap method? Can I do: List list = TypedList(new LinkedList()); Yes, but the syntax is List list = TypedList.wrap(new LinkedList()); However, as noted above, the iterator is based on AbstractList - not

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 3:36 PM To: Jakarta Commons Developers List Subject: Re: [Collections][SUBMIT] TypedList From: Henri

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
From: Henri Yandell [EMAIL PROTECTED] To answer myself, very bad form. I imagine that we would have a MapFilter/Predicate and a CollectionFilter/Predicate. Separate structures. Maybe allowing an adaptor for Maps which could use Collections on keys or values. So we need something more than

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
From: Tim Moore [EMAIL PROTECTED] Well if you think of this as a list proxy with no backing store of its own, then IMO it makes sense to think of the parameter as the collection to delegate to instead of to copy items out of. I feel like this is still in keeping with the spirit of the

[Collections][SUBMIT] PredicateList

2002-04-23 Thread Stephen Colebourne
Hi all, I've updated the classes to work around the existing Predicate class and the code below, see attached files. Stephen From: Tim Moore [EMAIL PROTECTED] Works for me! :-) From: Jack, Paul [mailto:[EMAIL PROTECTED]] I wouldn't even have a subclass for TypedList; I'd just put a

Re: [Collections][SUBMIT] TypedList

2002-04-23 Thread Stephen Colebourne
OK, this is a different design to one using Predicate, although obviously a similar purpose. Before I can continue and finish the other collections, I would like a decision on which way to go ;-) This design gives much more power, but is therefore more complex (more methods, more choice). Maybe

Re: [Collections][SUBMIT] TypedList - FilterList

2002-04-24 Thread Stephen Colebourne
the ttgetTypeCheckedList/tt * static factory method. * p * By default, this class will use an ArrayList behind the scenes. * Alternatively, a List implementation, such as ttLinkedList/tt, may * be wrapped by the constructor. * * @author Stephen Colebourne */ Feedback welcome. If this is agreed

Re: [Collections] TreeNode, TreeIterator, IdentityHashSet proposed collections

2002-04-29 Thread Stephen Colebourne
From: Kief Morris [EMAIL PROTECTED] Stephen Colebourne typed the following on 12:17 AM 4/7/2002 +0100 I have tweaked our two sets of interfaces tonight to produce a combination that starts to hang together. I don't think I lost any functionality, but they are only the interfaces at the moment

Re: [Collections][SUBMIT] WeakHashSet

2002-04-29 Thread Stephen Colebourne
From: Jack, Paul [EMAIL PROTECTED] To: 'Jakarta Commons Developers List' [EMAIL PROTECTED] Although it really does feel like we could provide some sort of Transformer- based approach that would enable weak elements but also other functionality... Like...Before I mentioned a two-transformer

Re: [Collections][SUBMIT] WeakHashSet

2002-04-29 Thread Stephen Colebourne
From: Jack, Paul [EMAIL PROTECTED] I'm not sure a two transformer approach is all thats needed. Collections have three basic types of method: - input (add/set) - query (indexOf, contains, equals, remove) - output (get, toArray) The Predicate/Transform proposal covers only the input

Re: [Collections][SUBMIT] WeakHashSet

2002-05-01 Thread Stephen Colebourne
For what its worth, I'm not planning on using the ProxyMap, or any other Proxy* classes. I reckon that they don't add a great deal. Stephen - Original Message - From: Jeff Keyser [EMAIL PROTECTED] To: 'Jakarta Commons Developers List' [EMAIL PROTECTED] Sent: Wednesday, May 01, 2002

Re: [Collections][SUBMIT] PredicateUtils [was TypedList]

2002-05-02 Thread Stephen Colebourne
] PredicateUtils [was TypedList] Hi Stephen I've given the code a quick once-over and it looks great. Nice and clean. I've added into CVS - if anyone has any objections please speak up. Some JUnit test cases would be nice for this stuff ;-) James - Original Message - From: Stephen

Re: [collections] - Few more collections for the masses... (impor tant for Struts view objects, maybe other projects)

2002-05-19 Thread Stephen Colebourne
From: Arron Bates [EMAIL PROTECTED] The java supplied collections allow nulls. A null rejecting collection would be a special case. As such I would have no problems with the javadoc of LazyList stating that nulls are used as placeholders. Well, using the empty object rather than null

Re: [collections] Naming of collection wrappers classes (PredicateUtils et al)

2002-05-20 Thread Stephen Colebourne
From: Jack, Paul [EMAIL PROTECTED] Thus I propose splitting PredicateUtils in two: PredicateCollections (#1 above) PredicateUtils (#2 above) Well, that still leaves us with the problem that PredicateUtils doesn't contain all of the predicate utils. Other ideas: 1. Move

Re: [collections] - Few more collections for the masses... (impor tant for Struts view objects, maybe other projects)

2002-05-20 Thread Stephen Colebourne
From: Arron Bates [EMAIL PROTECTED] I thought I'd try an example: List lazyList = LazyUtils.lazyList(new ArrayList()); // create entries 0 and 1 as 'empty', 2 as an object Object obj = lazyList.get(2); // set 1 and 2 to null, leave 0 as 'empty' lazyList.set(1, null); lazyList.set(2,

[Collections][Patch][Submit] PredicateUtils and PredicateCollections

2002-05-23 Thread Stephen Colebourne
This link contains the code for the PredicateUtils and PredicateCollections classes: http://www.scolebourne.eurobell.co.uk/Predicates.zip This change: - separates the 8 wrapper collections from the standard Predicate implementations. - patches a bug in the original checkin where a class was

[Collections][Submit] TreeNode and friends

2002-05-23 Thread Stephen Colebourne
The following link contains a submission to collections of classes to cover trees: http://www.scolebourne.eurobell.co.uk/TreeNode.zip This was discussed earlier in the year, but failed to come to a conclusion due to other commitments of Kief Morris at that time. I have now implemented an API for

[Collections][Submit] TreeNode and friends

2002-05-23 Thread Stephen Colebourne
The following link contains a submission to collections of classes to cover trees: http://www.scolebourne.eurobell.co.uk/TreeNode.zip This was discussed earlier in the year, but failed to come to a conclusion due to other commitments of Kief Morris at that time. I have now implemented an API for

Re: [SUBMIT][Collections] ReferenceMap, take 2

2002-05-26 Thread Stephen Colebourne
From: Jack, Paul [EMAIL PROTECTED] Now includes a junit test, which revealed several bugs, which are now fixed. Just an ideais it possible to write ReferenceMap as a wrapper around another Map? If so, then we could have ReferenceSortedMap, ReferenceList etc. all within

Re: [Collections][Submit] TreeNode and friends

2002-05-26 Thread Stephen Colebourne
From: bob mcwhirter [EMAIL PROTECTED] 3. What's the rationale for having equals and hashCode be reference based? The alternative is to compare both the value and children of that node. But in comparing the children, each child node will compare its value and children and so on.

Re: [Collections][Submit] TreeNode and friends

2002-05-27 Thread Stephen Colebourne
From: Kief Morris [EMAIL PROTECTED] I would rather keep the iterator on TreeNode. If there are only two standard ways to iterate then two methods would seem appropriate. But are there more than two ways?? I favor a single iterator() method on the interface which returns the nodes in an

Re: [Collections][Submit] TreeNode and friends

2002-05-29 Thread Stephen Colebourne
of? Stephen -Paul -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED]] Sent: Monday, May 27, 2002 11:19 AM To: Jakarta Commons Developers List Subject: Re: [Collections][Submit] TreeNode and friends From: Kief Morris [EMAIL PROTECTED] I would rather keep

[Collections][PATCH] PredicateUtils and PredicateCollections (Resubmitted)

2002-06-03 Thread Stephen Colebourne
Hi all, Resubmitted, as it got missed first time. Now LazyCollections is on the CVS, this rename/split is required to keep the CVS naming consistency. Stephen - Original Message - From: Stephen Colebourne [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent

Re: [Morphos] Java data morphing package - second stab

2002-06-06 Thread Stephen Colebourne
* It uses two params and not a return value to make it usable with * event based Objects (contenthandlers). * Events in the Morpher are notified by registering a listener. * [new] parameters are managed with beans get/set methods **none* are mandatory */ public

Re: [Collections] ComparableComparator - nulls OK

2002-06-08 Thread Stephen Colebourne
I too like the ComparatorUtils concept outlined below. However, we might want to consider whether the method names are nullFirst(Comparator) or nullFirstComparator(Comparator) etc. I raise this because PredicateUtils uses the latter at the moment, and it would be nice to be consistent (we could

[Collections] PredicateUtils and PredicateCollections

2002-06-08 Thread Stephen Colebourne
Hi, I have split the current PredicateUtils class in two as follows: PredicateUtils - the predicate implementations (more added) PredicateCollections - the validating predicate based wrapper collections Could a committer please advise on whether this split is acceptable? I'm concerned to get

[Collections][SUBMIT] TreeNode and friends

2002-06-08 Thread Stephen Colebourne
Hi, I have completed the updates proposed in the last discussion on trees. The tree node code now contains: TreeNode - a simple list based tree node interface ArrayTreeNode - an implementation based on ArrayList TreeUtils - a group of useful utilities for managing trees TestArrayTreeNode - a test

RE: [Collections] ComparableComparator - nulls OK

2002-06-11 Thread Stephen Colebourne
- Original message From: Jack, Paul [EMAIL PROTECTED] I too like the ComparatorUtils concept outlined below. However, we might want to consider whether the method names are nullFirst(Comparator) or nullFirstComparator(Comparator) etc. I raise this because

Re: Collections

2002-06-11 Thread Stephen Colebourne
From: Ola Berg [EMAIL PROTECTED] I see that the Collections package has pretty much the same classes that I had, and that you wanted more ideas. What does any of you committers say about: Filtering collections, that guarantees that only objects that matches an ObjectFilter (sorry, I mean

[Collections] Naming conventions [was ComparableComparator - nulls OK]

2002-06-11 Thread Stephen Colebourne
To: Jakarta Commons Developers List; Stephen Colebourne Subject: Re: [Collections] ComparableComparator - nulls OK Hello, What do you think of Set predicate(Set set, Predicate predicate) ? Is that too nondescript? Actually, there is another factor involved

RE: JEX wants to play in the sandbox

2002-06-12 Thread Stephen Colebourne
Dmitri, I have had a simiilar idea of using a prefix such as xpath:. I need to add functionality similar to this to the Joda project to access data (as with BeanUtils), so I am interested in using this if the API is suitable ;-) Stephen - Original message From: Dmitri

Re: [Collections] Naming conventions [was ComparableComparator - nulls OK]

2002-06-12 Thread Stephen Colebourne
for the decorator class names. But do you see what I'm getting at here? -Paul -Original Message- From: Stephen Colebourne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 4:20 PM To: Jakarta Commons Developers List Subject: [Collections] Naming conventions

Re: [Collections] Naming conventions

2002-06-15 Thread Stephen Colebourne
I thought part of the aim of the Utils was to avoid having top level classes, even if they are package scoped. The problem as I see it is that someone new to the package will come along and see maybe 60+ classes in the collections package. However, over half could be package scoped with no way

Re: [betwixt] bug: output is in reverse order of input...

2002-06-15 Thread Stephen Colebourne
Just a thought...could the Comparator class be used to do the sorting? Why write your own if one exists? Stephen - Original Message - From: robert burrell donkin [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Saturday, June 15, 2002 11:40 AM Subject: Re:

Re: [Betwixt] Some ideas

2002-06-15 Thread Stephen Colebourne
From: robert burrell donkin [EMAIL PROTECTED] On Friday, June 14, 2002, at 05:08 AM, James Strachan wrote: From: Stephen Colebourne [EMAIL PROTECTED] 2) ID's as Strings - Betwixt uses ints for it's ID/IDREF values (to handle recursion). I needed Strings, to allow for more complex

Re: [Collections] Naming conventions

2002-06-15 Thread Stephen Colebourne
] Sent: Saturday, June 15, 2002 5:15 PM Subject: Re: [Collections] Naming conventions On Sat, 15 Jun 2002, Stephen Colebourne wrote: I thought part of the aim of the Utils was to avoid having top level classes, even if they are package scoped. yeah, in a way. They coule also be looked

Re: [collection] Transformer exception handling

2002-06-15 Thread Stephen Colebourne
From: Ola Berg [EMAIL PROTECTED] This is one of the two reasons why I don\'t use jakartas framework (yet) but stick to my own. The generic transforming method needs to be declared as throwing exceptions. My Transformation interface (a Transformation is the thing doing the Transformation from

Re: [Betwixt] Some ideas

2002-06-15 Thread Stephen Colebourne
If you've checked the spec, then I withdraw the request ;-) Stephen - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Saturday, June 15, 2002 8:46 PM Subject: Re: [Betwixt] Some ideas Hi Stephen, Agreed.

Re: [all commons] Proposal: CommonsCommons package

2002-06-15 Thread Stephen Colebourne
I know what you mean, but I'm not sure that commoncommons is the answer. IMHO, code in the commons falls into three categories - - Widely used, and often as a group (BeanUtils, Betwixt, Collections, Digester, Logging) - Individual stable, less interrelationships (CLI, Cactus, DBCP, HTTP Client,

Re: [Betwixt] line endings (WAS : Re: [Betwixt] Some ideas)

2002-06-15 Thread Stephen Colebourne
- Original Message - From: Martin van den Bemt [EMAIL PROTECTED] Hmm.. mindspin coming up.. Since you can currently set any character you like, we could just allow valid characters, which doesn't choke parsers.. I support that Stephen -- To unsubscribe, e-mail: mailto:[EMAIL

Re: [all commons] Proposal: CommonsCommons package

2002-06-16 Thread Stephen Colebourne
From: Arron Bates [EMAIL PROTECTED] The Commons project itself is now housing separate sub projects which have seemingly their own boundaries Every little part is acting like its own jakarta project. Hell, the votes are even working that way... This guy's been doing some great work with

[BeanUtils][Betwixt][commons] Proposal: Reflection/Introspection/MetaData package

2002-06-16 Thread Stephen Colebourne
Hi, Currently, Betwixt and other users of BeanUtils rely on the java.beans class Introspector to extract details from a class. Introspector is a very old and limited class in todays terms: - it doesn't support collections, just simple objects and arrays - it doesn't support modern conventions

Re: [BeanUtils][Betwixt][commons] [jxpath] Proposal: Reflection/Introspection/MetaData package

2002-06-16 Thread Stephen Colebourne
, who have a lot of introspection in there code.. It works on all jdk versions afaik. See o.a.tools.ant.Introspectionhelper. +1 on the idea btw.. Mvgr, Martin On Sun, 2002-06-16 at 13:40, Stephen Colebourne wrote: Hi, Currently, Betwixt and other users of BeanUtils

Re: [reflect] Some thoughts

2002-06-16 Thread Stephen Colebourne
From: Ola Berg [EMAIL PROTECTED] In my reflect packet I have the classes Getters, Setters, Adders, Putters and Constructors and Call and Methods. Setters.set( Object bean, \property\, Object value) sets the value on a property etc. There are also methods for retrieving the type (as a Class)

Re: [BeanUtils][Betwixt][commons] [jxpath] Proposal: Reflection/Introspection/MetaData package

2002-06-16 Thread Stephen Colebourne
about introspection, org.apache.commons.introspection? - Dmitri - Original Message - From: Stephen Colebourne [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Sunday, June 16, 2002 1:36 PM Subject: Re: [BeanUtils][Betwixt][commons] [jxpath] Proposal

[lang] Added a couple of TODOs

2002-09-18 Thread Stephen Colebourne
I've just added a couple of the small TODOs. Hopefully they should be alright for the release: ObjectUtils.identityToString ObjectUtils.NULL I haven't got anything pressing extra to fit into the release now. Stephen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: Release (1) Re: [lang] Added a couple of TODOs

2002-09-19 Thread Stephen Colebourne
The builders look good. I was able to subclass ToStringStyle to get customized formatting, which was my chief concern. I do think the javadocs for the ToStringBuilder and associated classes should be expanded to make it easier to implement custom formatting, without someone needing to wade

Re: [lang] ready for a release

2002-09-21 Thread Stephen Colebourne
As I'm on holiday Sun-Tue, don't expect my vote until Wed. But it should be poitive ;-) Stephen PS. Can you provide a new maven link, so I can fix a few checkstyles? - Original Message - From: Henri Yandell [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent:

Re: [configuration]

2002-09-22 Thread Stephen Colebourne
There's quite a bit of code here that could be useful. I tried to have a look at the [configuration] project in commons sandbox to compare, but didn't have the time to do it properly. I suggest you might like to produce a compare and constrast list for your version versus the current commons

Re: [lang] Enum query

2002-09-25 Thread Stephen Colebourne
- Original Message - From: Henri Yandell [EMAIL PROTECTED] Any reason why the Enum class doesn't overload its methods with versions that don't take the Class object? So getEnumList() in the Enum class would call getEnumMap(this.getClass()) Because its static. There is no thisClass

Re: [VOTE] Commons Lang release 1.0

2002-09-25 Thread Stephen Colebourne
+1 - Original Message - From: Henri Yandell [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Monday, September 23, 2002 4:08 AM Subject: [VOTE] Commons Lang release 1.0 I'm proposing a vote for a 1.0 release of Commons Lang to be made. The difference

Re: [lang] StringUtils.containsOnly

2002-09-26 Thread Stephen Colebourne
My view is that one of the main advantages of StringUtils is to avoid NPEs. I actually thought that we'd been through all the methods and ensured that none of them did throw a NPE. As I sugested the method initially, I looked at what my own implementation of this does and what my needs are.

Re: next possible commons project - [regexp]

2002-09-26 Thread Stephen Colebourne
In the same way as [logging], by not being a regexp package itself. Of course it may just not be appropriate... Stephen - Original Message - From: Berin Loritsch [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 4:40 PM Subject:

Re: [lang] StringUtils.containsOnly

2002-09-26 Thread Stephen Colebourne
From: Steve Downey [EMAIL PROTECTED] On Thursday 26 September 2002 04:54 am, Stephen Colebourne wrote: My view is that one of the main advantages of StringUtils is to avoid NPEs. I actually thought that we'd been through all the methods and ensured that none of them did throw a NPE. I

Re: next possible commons project - [regexp]

2002-09-26 Thread Stephen Colebourne
I just want to point out that jakarta-oro is more than just a regular expression package and already contains the generic interfaces to wrap other packages (as it is, oro already implements 3 different regular expression grammars). It's a simple matter to add a factory to generate generic

Re: [beanutils] plan for 1.5 release

2002-09-28 Thread Stephen Colebourne
Can you point me to the piece of functionality in Digester that relies on it. Stephen BTW: I am currently looking after the reflection code in lang. - Original Message - From: Gregory M. Messner [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Friday,

Re: [beanutils] plan for 1.5 release

2002-09-28 Thread Stephen Colebourne
. Stephen - Original Message - From: robert burrell donkin [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 9:31 AM Subject: Re: [beanutils] plan for 1.5 release On Saturday, September 28, 2002, at 09:21 AM, Stephen Colebourne

Re: [lang] RandomStringUtils javadoc patch

2002-09-28 Thread Stephen Colebourne
Last five patches applied, thanks. Stephen - Original Message - From: Steve Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 28, 2002 5:58 AM Subject: [lang] RandomStringUtils javadoc patch Does : public static String random(int count, int start, int end,

Re: [lang] Delegates was Proposal for *NEXT* version

2002-10-04 Thread Stephen Colebourne
Split the thread as this bit got lost... There are definite similarities between this Delegate description and the code that is currently located in [pattern]. [pattern] contains four simple callback interfaces Predicate, Transformer, Command and Factory. It also has methods that support calling

Re: [ANN] Commons Lang 1.0 Released!

2002-10-04 Thread Stephen Colebourne
Thanks to Hen for organising the release ;-) and all for contributions. We seem to have a bit of momentum at the moment for new features and ideas. Lets hope we can keep that going, so maybe the 1.1 release will follow fairly soon. On that note, I have been looking at the reflection code again

Re: [lang] Proposal for *NEXT* version

2002-10-07 Thread Stephen Colebourne
The DynaBean abstraction (in BeanUtils today) lets you synthesize beans with a dynamic set of properties -- although only PropertyUtils knows how to do property get/set calls transparently for you. In Struts, for example, we take an XML-ized version of a description like your Person

[clazz] New project? [was Re: [lang] Proposal for *NEXT* version]

2002-10-09 Thread Stephen Colebourne
There seems to be some consensus that a new project is possible here. I have already been working locally on classes in this area. Below is the proposal.html file that I was using to control my scope:? h3(0) Rationale/h3 p The Java Reflection Framework provides a set of classes for accessing and

Re: [collections] When is the next release?

2002-10-10 Thread Stephen Colebourne
AFAIK, collections was prepared fully for a release, but the release never ocurred. There was a delay in the primitive subpackage, but I believe Rodney Waldorf completed his work there. I don't know who the release manager was, but they either need a little reminder, or a new one electing. This

Re: [clazz] New project? [was Re: [lang] Proposal for *NEXT* version]

2002-10-11 Thread Stephen Colebourne
From: Berin Loritsch [EMAIL PROTECTED] Not sure about the name, but I like the concept. Maybe we can call it Klass (sounds the same)? Any particular reason for not liking clazz??. Its not that important, I guess klass would be fine. ;-) Stephen -- To unsubscribe, e-mail: mailto:[EMAIL

[lang] Reflection - how accurate

2002-10-11 Thread Stephen Colebourne
I've been coding up the new reflection handling code (low level) for [lang]. And I've discovered that the Sun implementation (1.3.1) is screwed. Consider: Class A. Defines _public_ field named 'number' value 1 Class B. Subclass of A. Defines _private_ field named 'number' value 2 Interface I.

Re: [lang] Ideas for Lang

2002-10-12 Thread Stephen Colebourne
From: Henri Yandell [EMAIL PROTECTED] 1) Notifier class. I need a better name for this. Basically it's a helper that uses reflection [used to use Notifiable interface, but I decided it wasn't worth it, possibly wants to do both] to help a developer create an event/listener list. It handles

Re: [lang] Reflection - how accurate

2002-10-12 Thread Stephen Colebourne
be called isIgnoreScope().) This adds even more complexity to the code. I know about the MethodUtils from [beanutils], but has anyone else come up against these kinds of issues with reflection. Stephen - Original Message - From: Stephen Colebourne [EMAIL PROTECTED] To: Jakarta Commons

Re: [collections][lang] deprecate StringStack

2002-10-13 Thread Stephen Colebourne
StringStack is now deprecated as you propose. Stephen - Original Message - From: John McNally [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Thursday, October 10, 2002 10:19 PM Subject: [collections][lang] deprecate StringStack This class is badly named

Re: [collections][PATCH] CollectionUtils unused variable

2002-10-13 Thread Stephen Colebourne
Patch applied, thanks Stephen - Original Message - From: Steve Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 06, 2002 6:43 PM Subject: [collections][PATCH] CollectionUtils unused variable In isSubCollection(), there is a List that's new'd but never used.

Re: [collections][PATCH]MultiHashMap unused variable

2002-10-13 Thread Stephen Colebourne
Patch applied, thanks Stephen - Original Message - From: Steve Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 06, 2002 6:50 PM Subject: [collections][PATCH]MultiHashMap unused variable in the inner loop of values(), there's an assignment to a boolean that is never

Re: [collections] Why does ArrayStack refuse null elements

2002-10-13 Thread Stephen Colebourne
The checking that was in ArrayStack was insufficient anyway (you could get around it). I've enabled nulls to be added to ArrayStack now. Stephen - Original Message - From: Christopher Lenz [EMAIL PROTECTED] why does ArrayStack refuse to push null elements on the stack (it throws a

Re: [collections][PATCH]collections.UniqueFilterIterator

2002-10-13 Thread Stephen Colebourne
By my examination, UFI was added after release 2.0. Thus I have deleted it from the main package, so the patches are unnecessary. Personally, I don't like UFI at all, as I think its a special case of a FilterIterator with a Predicate. But as PredicateUtils isn't in [collections] I can't argue.

Re: [collections] possible contribution, LowercaseComparator and NumberComparator

2002-10-13 Thread Stephen Colebourne
From: [EMAIL PROTECTED] LowercaseComparator (which should be called IgnoreCaseComparator) allows you to compare two strings, say Eric and eric and get back that they are the same. This is useful when you are sorting strings that are in multiple types of case, and you don't care about the

Re: [PATCH][collections]import clean up

2002-10-13 Thread Stephen Colebourne
Patch applied, thanks Stephen - Original Message - From: Steve Downey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 06, 2002 6:22 PM Subject: [PATCH][collections]import clean up A lot of the collections classes import elements that are not actually used, or are used

[collections] Release Manager Job Vacancy

2002-10-13 Thread Stephen Colebourne
[collections] needs a release. The code appears to be in a releasable state (I've done some tidying tonight of odds and ends). We are currently lacking a Release Manager however. Does anyone fancy the job ??? Stephen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Re: [collections] Re: Commons Collections:Suggested MapUtils enhancements

2002-10-13 Thread Stephen Colebourne
See http://jakarta.apache.org/site/source.html for submissions details. toMap(Object[]) is used to initialise a Map, such as a HashMap with data. asMap(Object[]) exposes an array as a Map, thus can't have its size changed toMap(Object[]) is the same as map.putAll(MapUtils.asMap(Object[]));

[lang] ArrayUtils toMap asMap, [was Re: [collections] [PATCH] MapUtil]

2002-10-13 Thread Stephen Colebourne
Life is never simpleI started applying the patch, but hit some problems By comparison with the JDK, the method asList(Object[]) is on Arrays. Thus I have applied the patch to ArrayUtils in [lang] instead of [collections]. toMap(Object[]) fitted fine. When I looked at asMap(Object[]) I

Re: [collection] MultiHashMap class improvements

2002-10-13 Thread Stephen Colebourne
I have taken a look at the patch. Unfortunately I can't use it at present because it would involve changing the MultiMap interface. Once released, we generally do not change interfaces. Stephen - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October

[collections] Release plan and Final call for next release - 2.1

2002-10-13 Thread Stephen Colebourne
: Stephen Colebourne, assisted by Henri Yandell version number: 2.1 features: Buffer interface and implementations Primitive collections Decorators for Predicated, Synchronized, Unmodifiable, FixedSize collections Much better testing Bug fixes Package restructuring Better javadoc to do

[collections] Primitive collections

2002-10-14 Thread Stephen Colebourne
A debate has recently arrived at my doors privately from Bruce Eckel related to the primitive collections: Bruce has argued that the primitive method names should be the same as the Object ones from List, and the primitive classes should thus not implement List but a new interface

Re: [collections] Primitive collections

2002-10-15 Thread Stephen Colebourne
There is a good body of code here, but the GNU licence rules it out I believe. Stephen - Original Message - From: Janek Bogucki [EMAIL PROTECTED] Here's an example of a primitive collections library which uses a separate class heirarchy and the same method names

Re: [collections] Primitive collections

2002-10-15 Thread Stephen Colebourne
The exclusion plan seems to be OK. For the primitive design, my first approach would be to start with IntCollection and IntList interfaces and work out. I think that the interfaces can be exactly the same as the Collection and List interfaces, but returning/taking in ints instead of Objects.

[collections] Final release plan (2)

2002-10-15 Thread Stephen Colebourne
Primitives now removed from release plan: Please advise the list of any essential changes required by Wednesday midnight UTC. A vote for release should thus occur on Friday-Sunday. Release would then follow imminently. Stephen release plan release manager: Stephen Colebourne

Re: cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections ClassMap.java

2002-10-23 Thread Stephen Colebourne
Much of the code for getting all the superclasses and superinterfaces of a class is coded in the upcoming [lang] reflection code. Maybe the next collections release should depend on [lang]? Stephen - Original Message - From: Michael A. Smith [EMAIL PROTECTED] To: Jakarta Commons

Re: [VOTE] Release 2.1 of commons collections

2002-10-18 Thread Stephen Colebourne
+1 from me (I knew I forgot something...) - Original Message - From: Stephen Colebourne [EMAIL PROTECTED] To: Jakarta Commons Developers List [EMAIL PROTECTED] Sent: Thursday, October 17, 2002 10:04 PM Subject: [VOTE] Release 2.1 of commons collections The release candidate of 2.1

[collections] LoopingIterator

2002-10-18 Thread Stephen Colebourne
[Jonathan, I have sent back to commons-dev mailing list which is the appropriate place for design/code discussions.] I took a quick look, and I believe that the code in the zip will work. However, my main concern is why this would be needed. Is there a use case for an iterator that never ends? I

Re: JavaDoc of org.apache.commons.lang.builder.EqualsBuilder

2002-10-18 Thread Stephen Colebourne
[Alex, I have replied to commons-dev mailing list as the most appropriate place for the discussion] Inline... - Original Message - From: Alex Blewitt [EMAIL PROTECTED] I've just read the JavaDoc for EqualsBuilder V 1.0 on the Apahce website, and have a few comments which I think you may

Re: [general] checkstyle report

2002-10-19 Thread Stephen Colebourne
Are you talking about the maven checkstyle report? Or a specific projects? Stephen - Original Message - From: John Keyes [EMAIL PROTECTED] I would be interested to hear people's opinions on the resolution of checkstyle's error reporting. There are two options, one is to correct the

  1   2   3   4   5   6   7   8   9   10   >