org.dspace.ctask.general
Class MicrosoftTranslator

java.lang.Object
  extended by org.dspace.curate.AbstractCurationTask
      extended by org.dspace.ctask.general.AbstractTranslator
          extended by org.dspace.ctask.general.MicrosoftTranslator
All Implemented Interfaces:
CurationTask

public class MicrosoftTranslator
extends AbstractTranslator

MicrosoftTranslator translates metadata fields using Microsoft Translation API v2 Requirements: A valid Bing App ID/Key More information: http://www.bing.com/developers This key, and other custom configuration, goes in [dspace]/modules/translator.cfg

Author:
Kim Shepherd

Field Summary
 
Fields inherited from class org.dspace.curate.AbstractCurationTask
curator, taskId
 
Constructor Summary
MicrosoftTranslator()
           
 
Method Summary
protected  void initApi()
           
protected  String translateText(String from, String to, String text)
           
 
Methods inherited from class org.dspace.ctask.general.AbstractTranslator
init, perform
 
Methods inherited from class org.dspace.curate.AbstractCurationTask
dereference, distribute, perform, performItem, report, setResult, taskBooleanProperty, taskIntProperty, taskLongProperty, taskProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MicrosoftTranslator

public MicrosoftTranslator()
Method Detail

initApi

protected void initApi()
Overrides:
initApi in class AbstractTranslator

translateText

protected String translateText(String from,
                               String to,
                               String text)
                        throws IOException
Overrides:
translateText in class AbstractTranslator
Throws:
IOException


Copyright © 2011 DuraSpace. All Rights Reserved.