public class Filters extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_VERSION_ATTR |
| Constructor and Description |
|---|
Filters() |
| Modifier and Type | Method and Description |
|---|---|
static String |
fromVersionRange(String range)
Generate an LDAP-style version filter from a version range, e.g.
|
static String |
fromVersionRange(String range,
String versionAttr)
Generate an LDAP-style version filter from a version range, using a
specific attribute name for the version; for example can be used to
generate a range using the
bundle-version attribute such as
(&(bundle-version>=1.0)(!(bundle-version>=2.0)). |
public static final String DEFAULT_VERSION_ATTR
public static String fromVersionRange(String range) throws IllegalArgumentException
[1.0,2.0) generates (&(version>=1.0)(!(version>=2.0))range - IllegalArgumentException - If the supplied range is invalid.public static String fromVersionRange(String range, String versionAttr) throws IllegalArgumentException
bundle-version attribute such as
(&(bundle-version>=1.0)(!(bundle-version>=2.0)).range - versionAttr - IllegalArgumentException - If the supplied range is invalid.Copyright © 2019 aQute SARL. All rights reserved.