org.talend.esb.servicelocator.client
Class SLPropertiesMatcher
java.lang.Object
org.talend.esb.servicelocator.client.SLPropertiesMatcher
public class SLPropertiesMatcher
- extends Object
Checks whether a SLProperties has the specified values with specific values.
ALL_MATCHER
public static final SLPropertiesMatcher ALL_MATCHER
SLPropertiesMatcher
public SLPropertiesMatcher()
addAssertion
public 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. Name and value are trimmed before matching is done.
- Parameters:
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 null
isMatching
public boolean isMatching(SLProperties properties)
- Checks if the given
SLProperties fulfills all assertions specified for this matcher.
- Parameters:
properties - the properties to be checked
- Returns:
true iff if all assertions are fulfilled
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2011–2013 Talend Inc.. All rights reserved.