Pattern matching is done according to the filter string matching rules.
| Modifier and Type | Field and Description |
|---|---|
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | Returns: escaped value string.unescaped value string. value)Escape the value string such that '(', ')' and '\' are escaped. |
| public static Condition | Returns: Condition object for the requested condition.The Bundle being evaluated. bundle, final ConditionInfo The ConditionInfo from which to construct the condition. The
ConditionInfo must specify one or two arguments. The first
argument of the ConditionInfo specifies the location pattern
against which to match the bundle location. Matching is done
according to the filter string matching rules. Any '*' characters
in the first argument are used as wildcards when matching bundle
locations unless they are escaped with a '\' character. The
Condition is satisfied if the bundle location matches the pattern.
The second argument of the ConditionInfo is optional. If a second
argument is present and equal to "!", then the satisfaction of the
Condition is negated. That is, the Condition is satisfied if the
bundle location does NOT match the pattern. If the second argument
is present but does not equal "!", then the second argument is
ignored. info)Constructs a condition that tries to match the passed Bundle's location to the location pattern. |
| CONDITION_TYPE | back to summary |
|---|---|
| private static final String CONDITION_TYPE | |
| BundleLocationCondition | back to summary |
|---|---|
| private BundleLocationCondition() | |
| escapeLocation | back to summary |
|---|---|
| private static String escapeLocation(final String value) Escape the value string such that '(', ')' and '\' are escaped. The '\' char is only escaped if it is not followed by a '*'. | |
| getCondition | back to summary |
|---|---|
| public static Condition getCondition(final Bundle bundle, final ConditionInfo info) Constructs a condition that tries to match the passed Bundle's location to the location pattern.
| |