com.bbn.swede.tools.translator
Class TranslatorDescriptor

java.lang.Object
  extended bycom.bbn.swede.tools.translator.TranslatorDescriptor

public class TranslatorDescriptor
extends Object

A class that represents a translator as defined by the translator extension point. This class provides accessor methods to get information about a given translator. This class is instantiated exclusively by the TranslatorPlugin class and is relevant only within the scope of SWeDE translators.

Author:
aperezlo

Constructor Summary
(package private) TranslatorDescriptor(IConfigurationElement ice)
          Creates a translator descriptor for an extender of com.bbn.swede.tools.translator.
 
Method Summary
 String getGroupID()
          Retrieves the group-id of this translator, if one exists.
 String getGroupName()
          Retrieves the group-name of this translator, if one exists.
 String getInputExtension()
          Retrieves the input-extension of this translator.
 String getName()
          Retrieves the name of this translator.
 String getOutputExtension()
          Retrieves the output-extension of this translator.
 ITranslator getTranslator()
          Retrieves the translator represented by this descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslatorDescriptor

TranslatorDescriptor(IConfigurationElement ice)
               throws Exception
Creates a translator descriptor for an extender of com.bbn.swede.tools.translator.

Parameters:
ice - A configuration element for an extension of the translator extension point. Must specify an implementation of ITranslator.
Throws:
Exception - if there is an error creating an executable extension for the translator.
Method Detail

getInputExtension

public String getInputExtension()
Retrieves the input-extension of this translator.

Returns:
The input extension

getOutputExtension

public String getOutputExtension()
Retrieves the output-extension of this translator.

Returns:
The output extension

getTranslator

public ITranslator getTranslator()
Retrieves the translator represented by this descriptor.

Returns:
the translator

getName

public String getName()
Retrieves the name of this translator.

Returns:
The name

getGroupName

public String getGroupName()
Retrieves the group-name of this translator, if one exists.

Returns:
The group name

getGroupID

public String getGroupID()
Retrieves the group-id of this translator, if one exists.

Returns:
The group ID


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.