org.springframework.boot.config
Class ArrayDocumentMatcher
java.lang.Object
org.springframework.boot.config.ArrayDocumentMatcher
- All Implemented Interfaces:
- YamlProcessor.DocumentMatcher
public class ArrayDocumentMatcher
- extends Object
- implements YamlProcessor.DocumentMatcher
Matches a document containing a given key and where the value of that key is an array
containing one of the given values, or where one of the values matches one of the given
values (interpreted as regexes).
- Author:
- Dave Syer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayDocumentMatcher
public ArrayDocumentMatcher(String key,
String... patterns)
matches
public YamlProcessor.MatchStatus matches(Properties properties)
- Description copied from interface:
YamlProcessor.DocumentMatcher
- Test if the given properties match.
- Specified by:
matches in interface YamlProcessor.DocumentMatcher
- Parameters:
properties - the properties to test
- Returns:
- the status of the match.
Copyright © 2013. All Rights Reserved.