T - the return typepublic abstract class OutputExtension<T> extends OutputExtensionArgument<T,Object>
| Constructor and Description |
|---|
OutputExtension(Context context,
String id,
String pluginId)
creates a new outputExtension with a new id
|
OutputExtension(String id,
Context context)
creates a new outputExtension with a new id
|
| Modifier and Type | Method and Description |
|---|---|
abstract T |
generate(EventModel event)
generates the data for the given Event
|
T |
generate(EventModel event,
Object o)
generates the data for the given Event
|
com.google.common.reflect.TypeToken<Object> |
getArgumentType()
returns the Type of the argument for the OutputExtensions, or null if none
|
addResourceIdToWishList, canRun, getPluginId, getResourceIdWishList, getReturnType, removeResourceIdFromWishList, setPluginIdgetContext, getIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetID, isOwnerdebug, debug, error, error, fatal, fatal, warn, warnexceptionThrownpublic OutputExtension(Context context, String id, String pluginId)
context - the context of the addonid - the id to be set to the id of outputExtensionpluginId - the ID of the Plugin the OutputExtension is associated withpublic OutputExtension(String id, Context context)
id - the id to be set to the id of outputExtensioncontext - the context of the addonpublic com.google.common.reflect.TypeToken<Object> getArgumentType()
getArgumentType in interface OutputExtensionModel<T,Object>getArgumentType in class OutputExtensionArgument<T,Object>public T generate(EventModel event, Object o)
generate in interface OutputExtensionModel<T,Object>generate in class OutputExtensionArgument<T,Object>event - the event to generate foro - the optional argumentpublic abstract T generate(EventModel event)
event - the event to generate forCopyright © 2016. All rights reserved.