Class TranslationGenerator
java.lang.Object
edu.tufts.hrilab.action.translation.TranslationGenerator
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Protected to prevent instantiation except by subclasses. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
generateTranslation
(List<TranslationInfo> steps) static TranslationGenerator
Get the translation generator instance.abstract Class<? extends TranslationInfo>
abstract boolean
static boolean
setTranslationGeneratorType
(Class<? extends TranslationGenerator> type) Set the action selector type.static void
Helper method to convert string form of ActionSelector type (e.g., classpath) into a Class object and set the ActionSelector type.
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
TranslationGenerator
protected TranslationGenerator()Protected to prevent instantiation except by subclasses.
-
-
Method Details
-
getInstance
Get the translation generator instance.- Returns:
- the singleton instance of an TranslationGenerator.
-
setTranslationGeneratorType
Helper method to convert string form of ActionSelector type (e.g., classpath) into a Class object and set the ActionSelector type.- Parameters:
type
-
-
setTranslationGeneratorType
Set the action selector type.- Parameters:
type
- the action selector to use, a subclass of this class- Returns:
- success / failure (it can't be set after instance has been constructed)
-
generateTranslation
-
isAnnotationTranslatable
-
getTranslationInfoType
-