Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347142 - Need for a filter builder for building requirement filters
Summary: Need for a filter builder for building requirement filters
Status: RESOLVED INVALID
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: Juno   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 08:35 EDT by Thomas Watson CLA
Modified: 2012-02-29 12:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Watson CLA 2011-05-25 08:35:59 EDT
In bug 346979 we needed to generate a filter from a set of arbitrary attributes.  It became evident that we need some kind of filter builder to make such code more simple.  Some other things to note:

- VersionRange is not completely correct with respect to open ranges (i.e. >=1.0).  It uses max.max.max as the absolute maximum version, but max.max.max.qualifier > max.max.max.
- VersionRange could add a method to get a filter string that represents the range
Comment 1 Thomas Watson CLA 2011-06-08 11:30:59 EDT
Move all 3.8 bugs to Juno.
Comment 2 Thomas Watson CLA 2011-08-04 16:10:40 EDT
There is a proposal in OSGi to add a VersionRange class to the org.osgi.framework package.  This VersionRange class may contain a toFilterString() method.  If this happens then we can consider using that method to generate the filter string.  We will also consider making the Equinox VersionRange extend the osgi VersionRange.
Comment 3 Thomas Watson CLA 2012-02-29 12:15:27 EST
This is no longer valid.  The OSGi VersionRange class now provides the method we need to create a filter for version ranges.