org.springframework.boot.config
Class ArrayDocumentMatcher

java.lang.Object
  extended by 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

Constructor Summary
ArrayDocumentMatcher(String key, String... patterns)
           
 
Method Summary
 YamlProcessor.MatchStatus matches(Properties properties)
          Test if the given properties match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayDocumentMatcher

public ArrayDocumentMatcher(String key,
                            String... patterns)
Method Detail

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.