com.atlassian.plugin.predicate
Class PluginKeyPatternsPredicate

java.lang.Object
  extended by com.atlassian.plugin.predicate.PluginKeyPatternsPredicate
All Implemented Interfaces:
PluginPredicate

@ExperimentalApi
public class PluginKeyPatternsPredicate
extends Object
implements PluginPredicate

A plugin predicate which matches regular expressions against plugin keys.


Nested Class Summary
static class PluginKeyPatternsPredicate.MatchType
           
 
Constructor Summary
PluginKeyPatternsPredicate(PluginKeyPatternsPredicate.MatchType matchType, Collection<String> parts)
           
 
Method Summary
 boolean matches(Plugin plugin)
          Will match a plugin according to implementation rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginKeyPatternsPredicate

public PluginKeyPatternsPredicate(PluginKeyPatternsPredicate.MatchType matchType,
                                  Collection<String> parts)
Method Detail

matches

public boolean matches(Plugin plugin)
Description copied from interface: PluginPredicate

Will match a plugin according to implementation rules.

This method must not change the state of the plugin.

Specified by:
matches in interface PluginPredicate
Parameters:
plugin - the plugin to test against.
Returns:
true if the plugin matches the predicate, false otherwise.


Copyright © 2014 Atlassian. All rights reserved.