public class ConfigurationPropertyMatches extends Object implements ConfigurationPredicate
Configuration
property exists and
matches a specific regular expression.Constructor and Description |
---|
ConfigurationPropertyMatches(String propertyName,
String valueRegex)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
test(org.osgi.service.cm.Configuration configuration)
Tests whether the predicate's condition has been met or not.
|
String |
toString()
Should be overridden to provide a detailed description of what the predicate does, e.g.,
"property XYZ equals 123".
|
public boolean test(org.osgi.service.cm.Configuration configuration)
ConfigurationPredicate
test
in interface ConfigurationPredicate
configuration
- Configuration
object to run the predicate on. Predicate class
should assume that this can be null
.true
only if the predicate's condition has been metpublic String toString()
ConfigurationPredicate
toString
in interface ConfigurationPredicate
toString
in class Object
This work is licensed under a Creative Commons Attribution 4.0 International License.