public class SLPropertiesMatcher extends Object
SLProperties has the specified values with specific values.| Modifier and Type | Field and Description |
|---|---|
static SLPropertiesMatcher |
ALL_MATCHER |
| Constructor and Description |
|---|
SLPropertiesMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssertion(String name,
String value)
Add an assertion to this matcher where a
SLProperties must have a property with the given name
which at least contains the given value. |
String |
getAssertionsAsString() |
boolean |
isMatching(SLProperties properties)
Checks if the given
SLProperties fulfills all assertions specified for this matcher. |
String |
toString() |
public static final SLPropertiesMatcher ALL_MATCHER
public void addAssertion(String name, String value)
SLProperties must have a property with the given name
which at least contains the given value. Name and value are trimmed before matching is done.name - the name of the property which must be present, must not be nullvalue - the value the property must at least contain, must not be nullpublic boolean isMatching(SLProperties properties)
SLProperties fulfills all assertions specified for this matcher.properties - the properties to be checkedtrue iff if all assertions are fulfilledpublic String getAssertionsAsString()
Copyright © 2011–2018 Talend Inc.. All rights reserved.