com.intel.gpe.gridbeans.plugins
Interface IValueTranslator

All Known Implementing Classes:
ApplicationTranslator, BooleanValueTranslator, EmptyValueTranslator, GPEInputRemoteFileValueTranslator, GPELocalFileValueTranslator, GPEOutputRemoteFileValueTranslator, IntegerValueTranslator, StringValueTranslator, TargetSystemTranslator, WSLTClientValueTranslator, ZipGPEFileTranslator

public interface IValueTranslator

The interface of a value translator.

Version:
$Id: IValueTranslator.java,v 1.3 2005/12/22 09:20:32 lukichev Exp $
Author:
Alexander Lukichev

Method Summary
 java.lang.Object translateFrom(java.lang.Object v)
          Translate the value from the user's representation to the internal representation.
 java.lang.Object translateTo(java.lang.Object v)
          Translate the value from the internal representation to the user's representation.
 

Method Detail

translateTo

java.lang.Object translateTo(java.lang.Object v)
                             throws TranslationException
Translate the value from the internal representation to the user's representation. The Swing controls are then assigned with values in the user's representation.

Parameters:
v - The internal representation
Returns:
The user's representation
Throws:
TranslationException - If the translation cannot be performed

translateFrom

java.lang.Object translateFrom(java.lang.Object v)
                               throws TranslationException
Translate the value from the user's representation to the internal representation. The Swing controls return the values in the user's representation, these values are translated to the internal representation. The internal representation goes to the GridBean model.

Parameters:
v - The user's representation
Returns:
The internal representation
Throws:
TranslationException - If the translation cannot be performed


Copyright © 2008. All Rights Reserved.