Class MatchingPointConfigPatternMatcher

  • All Implemented Interfaces:

    public class MatchingPointConfigPatternMatcher
    extends java.lang.Object
    implements ConfigPatternMatcher
    This ConfigPatternMatcher supports a simplified wildcard matching. See " ## Using Wildcard" for details about the syntax options.

    In addition the candidates are weighted by the best match. The best result is returned. Throws InvalidConfigurationException is multiple configurations are found.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String matches​(java.lang.Iterable<java.lang.String> configPatterns, java.lang.String itemName)
      Returns the best match for an item name out of a list of configuration patterns.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MatchingPointConfigPatternMatcher

        public MatchingPointConfigPatternMatcher()
    • Method Detail

      • matches

        public java.lang.String matches​(java.lang.Iterable<java.lang.String> configPatterns,
                                        java.lang.String itemName)
                                 throws InvalidConfigurationException
        Description copied from interface: ConfigPatternMatcher
        Returns the best match for an item name out of a list of configuration patterns.
        Specified by:
        matches in interface ConfigPatternMatcher
        configPatterns - list of known configuration patterns
        itemName - item name to match
        a key of configPatterns which matches the item name or null if there is no match
        InvalidConfigurationException - if ambiguous configurations are found
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object