public class PluginConditions
extends java.lang.Object
| Constructor and Description |
|---|
PluginConditions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCondition(ConditionType type,
IPluginCondition condition)
Registers a condition into this storage class if it isn't there already.
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<IPluginCondition> |
getConditions(ConditionType type)
Gets condition by the type it is registered.
|
int |
hashCode() |
void |
testConditions(ConditionType type,
AbstractPlugin plugin)
Fires conditions by type on the plugin.
|
public void addCondition(ConditionType type, IPluginCondition condition)
type - type of the conditioncondition - the condition itselfpublic java.util.Set<IPluginCondition> getConditions(ConditionType type)
type - the type given by the userpublic void testConditions(ConditionType type, AbstractPlugin plugin) throws PluginException
type - the given typeplugin - the pluginPluginExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object