Interface TranslationService
- All Known Implementing Classes:
TranslationServiceImpl
public interface TranslationService
-
Method Summary
Modifier and TypeMethodDescription<T> TgetTranslatedEntity(String language, Class<T> type, T instance) Get a cloned version of a GTFS entity object with fields translated as per the GTFS Translations proposed spec addition.
-
Method Details
-
getTranslatedEntity
Get a cloned version of a GTFS entity object with fields translated as per the GTFS Translations proposed spec addition. SeeTranslation- Type Parameters:
T- entity type- Parameters:
language- language to translate totype- entity typeinstance- instance to clone and translate- Returns:
- cloned instance with the proper fields changed
-