org.processmining.plugins.utils
Class ProvidedObjectHelper

java.lang.Object
  extended by org.processmining.plugins.utils.ProvidedObjectHelper

public class ProvidedObjectHelper
extends java.lang.Object

Author:
michael

Constructor Summary
ProvidedObjectHelper()
           
 
Method Summary
static
<T> void
publish(org.processmining.framework.plugin.PluginContext context, java.lang.String name, T object, java.lang.Class<? super T> clazz, boolean favorite)
          Will publish object as a provided object with the class specified by clazz.
static void raise(org.processmining.framework.plugin.PluginContext context, java.lang.Object object)
           
static void setFavorite(org.processmining.framework.plugin.PluginContext context, java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProvidedObjectHelper

public ProvidedObjectHelper()
Method Detail

publish

public static <T> void publish(org.processmining.framework.plugin.PluginContext context,
                               java.lang.String name,
                               T object,
                               java.lang.Class<? super T> clazz,
                               boolean favorite)
Will publish object as a provided object with the class specified by clazz. If the context is a UIPluginContext and favorite is true, it will be marked as a favorite object as well. Finally, if it is marked as favorite, it will also be show and ProM will switch to the Views tab. Encapsulation is for scared little boys/girls who still believe in the invisible pink unicorn (IPU).

Type Parameters:
T -
Parameters:
context -
name -
object -
clazz -
favorite -

raise

public static void raise(org.processmining.framework.plugin.PluginContext context,
                         java.lang.Object object)

setFavorite

public static void setFavorite(org.processmining.framework.plugin.PluginContext context,
                               java.lang.Object object)