Class AbstractInputTranslationActionFactory
- java.lang.Object
-
- pl.edu.icm.unity.engine.translation.in.action.AbstractInputTranslationActionFactory
-
- All Implemented Interfaces:
InputTranslationActionFactory
,TranslationActionFactory<InputTranslationAction>
- Direct Known Subclasses:
IncludeInputProfileActionFactory
public abstract class AbstractInputTranslationActionFactory extends Object implements InputTranslationActionFactory
Boilerplate code for the input profile'sInputTranslationActionFactory
implementations.- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description AbstractInputTranslationActionFactory(String name, ActionParameterDefinition... parameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationActionType
getActionType()
InputTranslationAction
getBlindInstance(String... parameters)
Used when an exception is thrown by the baseTranslationActionFactory.getInstance(String...)
method.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pl.edu.icm.unity.engine.api.translation.TranslationActionFactory
getInstance
-
-
-
-
Constructor Detail
-
AbstractInputTranslationActionFactory
public AbstractInputTranslationActionFactory(String name, ActionParameterDefinition... parameters)
-
-
Method Detail
-
getActionType
public TranslationActionType getActionType()
- Specified by:
getActionType
in interfaceTranslationActionFactory<InputTranslationAction>
- Returns:
- definition of an action created by this factory
-
getBlindInstance
public InputTranslationAction getBlindInstance(String... parameters)
Description copied from interface:TranslationActionFactory
Used when an exception is thrown by the baseTranslationActionFactory.getInstance(String...)
method. Must not throw any exception (naturally besidesError
;-)). The returned action should generally do nothing besides logging that it is a blind stopper of the real action.- Specified by:
getBlindInstance
in interfaceTranslationActionFactory<InputTranslationAction>
- Returns:
-
-