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's
InputTranslationActionFactory
implementations.- Author:
- K. Benedyczak
-
Constructor Summary
ConstructorDescriptionAbstractInputTranslationActionFactory
(String name, pl.edu.icm.unity.base.translation.ActionParameterDefinition... parameters) -
Method Summary
Modifier and TypeMethodDescriptionpl.edu.icm.unity.base.translation.TranslationActionType
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 Details
-
AbstractInputTranslationActionFactory
public AbstractInputTranslationActionFactory(String name, pl.edu.icm.unity.base.translation.ActionParameterDefinition... parameters)
-
-
Method Details
-
getActionType
public pl.edu.icm.unity.base.translation.TranslationActionType getActionType()- Specified by:
getActionType
in interfaceTranslationActionFactory<InputTranslationAction>
- Returns:
- definition of an action created by this factory
-
getBlindInstance
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:
-