Class TranslationServiceImpl
java.lang.Object
org.onebusaway.gtfs.impl.translation.TranslationServiceImpl
- All Implemented Interfaces:
TranslationService
This class implements the GTFS Translations extension proposal, documented here: http://bit.ly/gtfs-translations
-
Constructor Summary
Constructors -
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.void
-
Constructor Details
-
TranslationServiceImpl
public TranslationServiceImpl()
-
-
Method Details
-
setData
-
getTranslatedEntity
Description copied from interface:TranslationServiceGet a cloned version of a GTFS entity object with fields translated as per the GTFS Translations proposed spec addition. SeeTranslation- Specified by:
getTranslatedEntityin interfaceTranslationService- 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
-