I will comment on the bug reports directly. However as a general question - 
what is it that you are trying to work on? As user interface for filters? A DSL?

If you look in the gt-brewer module there is a FilterBuilder I created a while 
back that I have not pushed into day to day use (mostly as it is part of a 
larger style builder that is kicking me down). The design goal is to let you 
hack away at a filter without all this immutable restrictions; and then will 
create a filter at the end of the day. Load your filter into a FilterBuilder; 
mess around with stuff; and then push out the modified result.

Here is an example with ExpressionBuilder:

ExpressionBuilder b = new ExpressionBuilder();
Expression e;

b.literal("hello world");
e = b.build();

or

e = b.literal().value(1).build()

Expressions that have child expressions are supported:

e = b.add().expr1().literal(1).expr2().literal(2).build())

Working with functions is a bit more silly

e = b.function("min").param().literal(1).param().literal(2).build()

It looks better on multiple lines..


So I am not saying this is ready to use; or even a good idea, but if you are 
interested you are welcome to join me on hacking up this code in gt-brewer and 
when it is ready we can add it to main. 

-- 
Jody Garnett

On Thursday, 14 April 2011 at 2:57 AM, Eric Sword via SF wrote: 
> Thanks for jumping on this so fast. I didn't expect it to shift into high
> gear so suddenly.
> 
> Commented on the PrePostFilterVisitor issue
> (http://jira.codehaus.org/browse/GEOT-3514) and a minor point on the
> reasoning behind "isGroupFilter" and "isLogicFilter"
> (http://jira.codehaus.org/browse/GEOT-3512). I have to update and build
> trunk before I can look at what you did directly. I only have the 2.7.x
> branch up to date.
> 
> 
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Fits-of-Filtering-Fun-tp6269330p6269800.html
> Sent from the geotools-devel mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Forrester Wave Report - Recovery time is now measured in hours and minutes
> not days. Key insights are discussed in the 2010 Forrester Wave Report as
> part of an in-depth evaluation of disaster recovery service providers.
> Forrester found the best-in-class provider in terms of services and vision.
> Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
> 
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to