/** * A method for determining the list of modules required to transform the given source data type into the requested target * data type. * * @param sourceType * sourceType * @param targetType * targetType * @param locale * locale * @return the (ordered) list of modules required, or null if no such list could be found. * @throws IllegalStateException * if called while registration is not yet complete. * @throws NullPointerException * if source data type, target data type or locale is null. */ public static LinkedList<MaryModule> modulesRequiredForProcessing(MaryDataType sourceType, MaryDataType targetType, Locale locale) { return modulesRequiredForProcessing(sourceType, targetType, locale, null); }
/** * A method for determining the list of modules required to transform the given source data type into the requested target * data type. * * @param sourceType * sourceType * @param targetType * targetType * @param locale * locale * @return the (ordered) list of modules required, or null if no such list could be found. * @throws IllegalStateException * if called while registration is not yet complete. * @throws NullPointerException * if source data type, target data type or locale is null. */ public static LinkedList<MaryModule> modulesRequiredForProcessing(MaryDataType sourceType, MaryDataType targetType, Locale locale) { return modulesRequiredForProcessing(sourceType, targetType, locale, null); }
return modulesRequiredForProcessing(sourceType, targetType, locale, voice, seenTypes);
return modulesRequiredForProcessing(sourceType, targetType, locale, voice, seenTypes);
+ " (locale " + locale + ", voice " + voice + ")"); LinkedList<MaryModule> path = modulesRequiredForProcessing(outputType, targetType, locale, voice, seenTypes); if (path != null) {
+ " (locale " + locale + ", voice " + voice + ")"); LinkedList<MaryModule> path = modulesRequiredForProcessing(outputType, targetType, locale, voice, seenTypes); if (path != null) {
private MaryData processOneChunk(MaryData oneInputData, MaryDataType oneOutputType, String outputParams, Locale locale) throws Exception, TransformerConfigurationException, FileNotFoundException, TransformerException, IOException { logger.debug("Determining which modules to use"); List<MaryModule> neededModules = ModuleRegistry.modulesRequiredForProcessing(oneInputData.getType(), oneOutputType, locale, oneInputData.getDefaultVoice());
private MaryData processOneChunk(MaryData oneInputData, MaryDataType oneOutputType, String outputParams, Locale locale) throws Exception, TransformerConfigurationException, FileNotFoundException, TransformerException, IOException { logger.debug("Determining which modules to use"); List<MaryModule> neededModules = ModuleRegistry.modulesRequiredForProcessing(oneInputData.getType(), oneOutputType, locale, oneInputData.getDefaultVoice());
return 1; // two is first if (ModuleRegistry.modulesRequiredForProcessing(one, two, null) == null) {
return 1; // two is first if (ModuleRegistry.modulesRequiredForProcessing(one, two, null) == null) {
/** * A method for determining the list of modules required to transform the given source data type into the requested target * data type. * * @param sourceType * sourceType * @param targetType * targetType * @param locale * locale * @return the (ordered) list of modules required, or null if no such list could be found. * @throws IllegalStateException * if called while registration is not yet complete. * @throws NullPointerException * if source data type, target data type or locale is null. */ public static LinkedList<MaryModule> modulesRequiredForProcessing(MaryDataType sourceType, MaryDataType targetType, Locale locale) { return modulesRequiredForProcessing(sourceType, targetType, locale, null); }
return modulesRequiredForProcessing(sourceType, targetType, locale, voice, seenTypes);
+ " (locale " + locale + ", voice " + voice + ")"); LinkedList<MaryModule> path = modulesRequiredForProcessing(outputType, targetType, locale, voice, seenTypes); if (path != null) {
private MaryData processOneChunk(MaryData oneInputData, MaryDataType oneOutputType, String outputParams, Locale locale) throws Exception, TransformerConfigurationException, FileNotFoundException, TransformerException, IOException { logger.debug("Determining which modules to use"); List<MaryModule> neededModules = ModuleRegistry.modulesRequiredForProcessing(oneInputData.getType(), oneOutputType, locale, oneInputData.getDefaultVoice());
return 1; // two is first if (ModuleRegistry.modulesRequiredForProcessing(one, two, null) == null) {