IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base.types.impl
Class BaseConverter<K,T extends BaseConverter.FormatParamBeam>

java.lang.Object
  extended by com.ibm.btt.base.types.AbstractConverter
      extended by com.ibm.btt.base.types.impl.BaseConverter<K,T>
All Implemented Interfaces:
Conversion, TypeConstants, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
BooleanConverter, ByteArrayConverter, CurrencyConverter, DateConverter, DateDefaultConverter, DurationConverter, NumberConverter, NumberFormatConverter, StringConverter, XMLGregorianCalendarConverter, XMLGregorianCalendarDefaultConverter

public abstract class BaseConverter<K,T extends BaseConverter.FormatParamBeam>
extends AbstractConverter

See Also:
Serialized Form

Nested Class Summary
static class BaseConverter.FormatParamBeam
           
 
Field Summary
 
Fields inherited from class com.ibm.btt.base.types.AbstractConverter
keyValuePairs
 
Fields inherited from interface com.ibm.btt.base.types.TypeConstants
amended, CONV_TYPE_DEFAULT, CONV_TYPE_HOST, CONV_TYPE_HTML, CONV_TYPE_OUTPUT, CONV_TYPE_SER, CONV_TYPE_XML, disabled, hidden, isAmended, isDisabled, isHidden, isMandatory, isOmitted, isReadOnly, mandatory, omitted, readOnly, TYPE_DEFAULT, TYPE_REGISTRY_INIT_SIZE
 
Constructor Summary
BaseConverter()
           
BaseConverter(java.lang.String[] arg0, java.util.Hashtable<?,?> arg1)
           
 
Method Summary
 java.lang.Object convertFrom(java.lang.Object obj, PropertyDescription pd)
          format, unformat , convertFrom, convertTo This methods are all delegate to the two abstract methods.
 java.lang.Object convertFrom(java.lang.Object obj, PropertyDescription pd, boolean byReference)
          Converts an input object into a proper object handled by the converter.
 java.lang.Object convertFrom(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference)
          Converts an input object into a proper object handled by the converter.
 java.lang.Object convertFrom(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference, java.util.Locale locale)
          Converts an input object into a proper object handled by the converter.
 java.lang.Object convertFrom(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference, java.util.Locale locale, Hashtable parameters)
          Converts an input object into a proper object handled by the converter.
 java.lang.Object convertTo(java.lang.Object obj, PropertyDescription pd)
          Converts an input object into a proper object handled by the invoker.
 java.lang.Object convertTo(java.lang.Object obj, PropertyDescription pd, boolean byReference)
          Converts an input object into a proper object handled by the invoker.
 java.lang.Object convertTo(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference)
          Converts an input object into a proper object handled by the invoker.
 java.lang.Object convertTo(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference, java.util.Locale locale)
          Converts an input object into a proper object handled by the invoker.
 java.lang.Object convertTo(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference, java.util.Locale locale, Hashtable parameters)
          Converts an input object into a proper object handled by the invoker.
 java.lang.String format(K value, T params, java.lang.String convType, java.util.Locale locale)
          Convert specified object to string.
 java.lang.String format(K value, T params, java.lang.String convType, java.util.Locale locale, java.util.TimeZone timezone)
           
 void formatToWriter(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor)
          Formats the passed Object using the specified conversion type and writer passed as arguments.
 void formatToWriter(java.lang.Object arg0, java.lang.String arg1, java.io.Writer arg2, PropertyDescription arg3, java.util.Locale arg4)
          Formats the passed Object using the specified conversion type, locale, and writer passed as arguments.
 void formatToWriter(java.lang.Object value, java.lang.String convType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters)
          Formats the passed Object using the specified conversion type, locale, and writer passed as arguments.
 void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor)
          Deprecated. 
 void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, Hashtable parameters)
          Deprecated. 
 void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale)
          Deprecated. 
 void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters)
          Deprecated. 
 java.lang.Class<?> getImplClass()
           
protected  java.lang.Object getParameter(java.lang.String key, java.util.Hashtable<?,?> parameters, PropertyDescription descriptor, java.lang.String convType)
           
protected  T getParameterBean()
           
protected  java.util.TimeZone getTimeZone()
           
protected  java.lang.String readString(java.io.Reader reader)
           
protected  java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale)
          Deprecated. 
protected  java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale, Hashtable parameters)
          Deprecated. 
 K unformat(java.lang.String value, T params, java.lang.String convType, java.util.Locale locale)
          Convert string input to specified object
 K unformat(java.lang.String value, T params, java.lang.String convType, java.util.Locale locale, java.util.TimeZone timezone)
           
 java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor)
          Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type.
 java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, Hashtable parameters)
          Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type.
 java.lang.Object unformatFromReader(java.io.Reader arg0, java.lang.String arg1, PropertyDescription arg2, java.util.Locale arg3)
          Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type and the given locale.
 java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String convType, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters)
          Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type and the given locale.
 java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor)
          Deprecated. 
 java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, Hashtable parameters)
          Deprecated. 
 java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale)
          Deprecated. 
 java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters)
          Deprecated. 
protected  java.lang.Object unformatFromString(java.lang.String convType, java.util.Locale locale, T paramBean, java.lang.String stringValue)
           
protected  void writeString(java.lang.String str, java.io.Writer writer)
           
 
Methods inherited from class com.ibm.btt.base.types.AbstractConverter
getParameters, getSupportedConversionTypes, readExternal, supportsConversionType, validateParams, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseConverter

public BaseConverter()
              throws DSETypeException
Throws:
DSETypeException

BaseConverter

public BaseConverter(java.lang.String[] arg0,
                     java.util.Hashtable<?,?> arg1)
              throws DSETypeException
Throws:
DSETypeException
Method Detail

format

public java.lang.String format(K value,
                               T params,
                               java.lang.String convType,
                               java.util.Locale locale)
                        throws DSETypeException
Convert specified object to string.

Parameters:
value - The object to be converted to
params - Conversion parameters defined by btt type
convType - Conversion type defined by btt type
locale - Locale
Returns:
Formated string
Throws:
DSETypeException - Throw DSETypeException when failed to convert specified object to string

format

public java.lang.String format(K value,
                               T params,
                               java.lang.String convType,
                               java.util.Locale locale,
                               java.util.TimeZone timezone)
                        throws DSETypeException
Throws:
DSETypeException

unformat

public K unformat(java.lang.String value,
                  T params,
                  java.lang.String convType,
                  java.util.Locale locale)
           throws DSETypeException
Convert string input to specified object

Parameters:
value - Input string
params - Conversion parameters defined by btt type
convType - Conversion type defined by btt type
locale - Locale
Returns:
Converted object
Throws:
DSETypeException - Throw DSETypeException when failed to convert the input string to specified object

unformat

public K unformat(java.lang.String value,
                  T params,
                  java.lang.String convType,
                  java.util.Locale locale,
                  java.util.TimeZone timezone)
           throws DSETypeException
Throws:
DSETypeException

getTimeZone

protected java.util.TimeZone getTimeZone()

readString

protected java.lang.String readString(java.io.Reader reader)
                               throws DSETypeException
Throws:
DSETypeException

writeString

protected void writeString(java.lang.String str,
                           java.io.Writer writer)
                    throws DSETypeException
Throws:
DSETypeException

getParameterBean

protected T getParameterBean()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

getParameter

protected java.lang.Object getParameter(java.lang.String key,
                                        java.util.Hashtable<?,?> parameters,
                                        PropertyDescription descriptor,
                                        java.lang.String convType)

convertFrom

public java.lang.Object convertFrom(java.lang.Object obj,
                                    PropertyDescription pd)
                             throws DSETypeException
format, unformat , convertFrom, convertTo This methods are all delegate to the two abstract methods. If the customer have some special requirements, they can override this methods.

Specified by:
convertFrom in interface Conversion
Overrides:
convertFrom in class AbstractConverter
Parameters:
obj - java.lang.Object
pd - com.ibm.btt.base.types.PropertyDescription
Returns:
java.lang.Object
Throws:
DSETypeException

convertFrom

public java.lang.Object convertFrom(java.lang.Object obj,
                                    PropertyDescription pd,
                                    boolean byReference)
                             throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the converter. The invoker is responsible for setting the output object into the data element. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertFrom in interface Conversion
Overrides:
convertFrom in class AbstractConverter
Parameters:
obj - java.lang.Object
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
Returns:
java.lang.Object
Throws:
DSETypeException

convertFrom

public java.lang.Object convertFrom(java.lang.Object obj,
                                    java.lang.String convType,
                                    PropertyDescription pd,
                                    boolean byReference)
                             throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the converter. The invoker is responsible for setting the output object into the data element. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertFrom in interface Conversion
Overrides:
convertFrom in class AbstractConverter
Parameters:
obj - java.lang.Object
convType - java.lang.String
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
Returns:
java.lang.Object
Throws:
DSETypeException

convertFrom

public java.lang.Object convertFrom(java.lang.Object obj,
                                    java.lang.String convType,
                                    PropertyDescription pd,
                                    boolean byReference,
                                    java.util.Locale locale)
                             throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the converter. The invoker is responsible for setting the output object into the data element. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertFrom in interface Conversion
Overrides:
convertFrom in class AbstractConverter
Parameters:
obj - java.lang.Object
convType - java.lang.String
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
locale - Locale
Returns:
java.lang.Object
Throws:
DSETypeException

convertFrom

public java.lang.Object convertFrom(java.lang.Object obj,
                                    java.lang.String convType,
                                    PropertyDescription pd,
                                    boolean byReference,
                                    java.util.Locale locale,
                                    Hashtable parameters)
                             throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the converter. The invoker is responsible for setting the output object into the data element. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertFrom in interface Conversion
Overrides:
convertFrom in class AbstractConverter
Parameters:
obj - java.lang.Object
convType - java.lang.String
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Returns:
java.lang.Object
Throws:
DSETypeException

convertTo

public java.lang.Object convertTo(java.lang.Object obj,
                                  PropertyDescription pd)
                           throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the invoker. The output object can be used by the invoker for different purposes and its type will be converter dependant.

Specified by:
convertTo in interface Conversion
Overrides:
convertTo in class AbstractConverter
Parameters:
obj - java.lang.Object
pd - com.ibm.btt.base.types.PropertyDescription
Returns:
java.lang.Object
Throws:
DSETypeException

convertTo

public java.lang.Object convertTo(java.lang.Object obj,
                                  PropertyDescription pd,
                                  boolean byReference)
                           throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the invoker. The output object can be used by the invoker for different purposes and its type will be converter dependant. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertTo in interface Conversion
Overrides:
convertTo in class AbstractConverter
Parameters:
obj - java.lang.Object
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
Returns:
java.lang.Object
Throws:
DSETypeException

convertTo

public java.lang.Object convertTo(java.lang.Object obj,
                                  java.lang.String convType,
                                  PropertyDescription pd,
                                  boolean byReference)
                           throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the invoker. The output object can be used by the invoker for different purposes and its type will be converter dependant. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertTo in interface Conversion
Overrides:
convertTo in class AbstractConverter
Parameters:
obj - java.lang.Object
convType - java.lang.String
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
Returns:
java.lang.Object
Throws:
DSETypeException

convertTo

public java.lang.Object convertTo(java.lang.Object obj,
                                  java.lang.String convType,
                                  PropertyDescription pd,
                                  boolean byReference,
                                  java.util.Locale locale)
                           throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the invoker. The output object can be used by the invoker for different purposes and its type will be converter dependant. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertTo in interface Conversion
Overrides:
convertTo in class AbstractConverter
Parameters:
obj - java.lang.Object
convType - java.lang.String
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
locale - Locale
Returns:
java.lang.Object
Throws:
DSETypeException

convertTo

public java.lang.Object convertTo(java.lang.Object obj,
                                  java.lang.String convType,
                                  PropertyDescription pd,
                                  boolean byReference,
                                  java.util.Locale locale,
                                  Hashtable parameters)
                           throws DSETypeException
Description copied from class: AbstractConverter
Converts an input object into a proper object handled by the invoker. The output object can be used by the invoker for different purposes and its type will be converter dependant. If byReference is set to true, the conversion, if accepted by the converter, is performed by reference.

Specified by:
convertTo in interface Conversion
Overrides:
convertTo in class AbstractConverter
Parameters:
obj - java.lang.Object
convType - java.lang.String
pd - com.ibm.btt.base.types.PropertyDescription
byReference - boolean
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Returns:
java.lang.Object
Throws:
DSETypeException

formatToWriter

public void formatToWriter(java.lang.Object value,
                           java.lang.String convType,
                           java.io.Writer writer,
                           PropertyDescription descriptor,
                           java.util.Locale locale,
                           Hashtable parameters)
                    throws DSETypeException
Description copied from class: AbstractConverter
Formats the passed Object using the specified conversion type, locale, and writer passed as arguments. Parameters required by the specific type converter may be taken from the Hashtable passed as an argument.

Specified by:
formatToWriter in interface Conversion
Overrides:
formatToWriter in class AbstractConverter
Parameters:
value - Object
convType - String
writer - Writer
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Throws:
DSETypeException

formatToWriter

public void formatToWriter(java.lang.Object arg0,
                           java.lang.String arg1,
                           java.io.Writer arg2,
                           PropertyDescription arg3,
                           java.util.Locale arg4)
                    throws DSETypeException
Description copied from class: AbstractConverter
Formats the passed Object using the specified conversion type, locale, and writer passed as arguments. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Specified by:
formatToWriter in interface Conversion
Overrides:
formatToWriter in class AbstractConverter
Parameters:
arg0 - Object
arg1 - String
arg2 - Writer
arg3 - PropertyDescription
arg4 - Locale
Throws:
DSETypeException

formatToWriter

public void formatToWriter(java.lang.Object value,
                           java.lang.String conversionType,
                           java.io.Writer writer,
                           PropertyDescription descriptor)
                    throws DSETypeException
Description copied from class: AbstractConverter
Formats the passed Object using the specified conversion type and writer passed as arguments. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Specified by:
formatToWriter in interface Conversion
Overrides:
formatToWriter in class AbstractConverter
Parameters:
value - Object Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
Throws:
DSETypeException - Formatting is unsuccessful.

unformatFromReader

public java.lang.Object unformatFromReader(java.io.Reader reader,
                                           java.lang.String convType,
                                           PropertyDescription descriptor,
                                           java.util.Locale locale,
                                           Hashtable parameters)
                                    throws DSETypeException
Description copied from class: AbstractConverter
Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type and the given locale. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Specified by:
unformatFromReader in interface Conversion
Overrides:
unformatFromReader in class AbstractConverter
Parameters:
reader - Reader
convType - String
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Returns:
Object
Throws:
DSETypeException - Unformatting is unsuccessful

unformatFromString

protected java.lang.Object unformatFromString(java.lang.String convType,
                                              java.util.Locale locale,
                                              T paramBean,
                                              java.lang.String stringValue)
                                       throws DSETypeException
Throws:
DSETypeException

unformatFromReader

public java.lang.Object unformatFromReader(java.io.Reader reader,
                                           java.lang.String conversionType,
                                           PropertyDescription descriptor,
                                           Hashtable parameters)
                                    throws DSETypeException
Description copied from class: AbstractConverter
Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type. Parameters required by the specific type converter may be taken from the Hastable passed as an argument.

Overrides:
unformatFromReader in class AbstractConverter
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
parameters - com.ibm.btt.base.Hashtable
Returns:
Object
Throws:
DSETypeException - - Unformatting is unsuccessful

unformatFromReader

public java.lang.Object unformatFromReader(java.io.Reader arg0,
                                           java.lang.String arg1,
                                           PropertyDescription arg2,
                                           java.util.Locale arg3)
                                    throws DSETypeException
Description copied from class: AbstractConverter
Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type and the given locale. Parameters required by the specific type of converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Specified by:
unformatFromReader in interface Conversion
Overrides:
unformatFromReader in class AbstractConverter
Parameters:
arg0 - Reader
arg1 - String
arg2 - PropertyDescription
arg3 - Locale
Returns:
Object
Throws:
DSETypeException - - Unformatting is unsuccessful.

unformatFromReader

public java.lang.Object unformatFromReader(java.io.Reader reader,
                                           java.lang.String conversionType,
                                           PropertyDescription descriptor)
                                    throws DSETypeException
Description copied from class: AbstractConverter
Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Specified by:
unformatFromReader in interface Conversion
Overrides:
unformatFromReader in class AbstractConverter
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
Returns:
Object
Throws:
DSETypeException - - Unformatting is unsuccessful

unformatFromReaderForType

@Deprecated
public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
                                                             java.lang.String conversionType,
                                                             PropertyDescription descriptor,
                                                             Hashtable parameters)
                                           throws java.lang.Exception
Deprecated. 

Deprecated methods

Overrides:
unformatFromReaderForType in class AbstractConverter
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
parameters - com.ibm.btt.base.Hashtable
Throws:
java.lang.Exception - Unformatting is unsuccessful

unformatFromReaderForType

@Deprecated
public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
                                                             java.lang.String conversionType,
                                                             PropertyDescription descriptor,
                                                             java.util.Locale locale,
                                                             Hashtable parameters)
                                           throws java.lang.Exception
Deprecated. 

Description copied from class: AbstractConverter
Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type and locale. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Overrides:
unformatFromReaderForType in class AbstractConverter
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Throws:
java.lang.Exception

unformatFromReaderForType

@Deprecated
public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
                                                             java.lang.String conversionType,
                                                             PropertyDescription descriptor,
                                                             java.util.Locale locale)
                                           throws java.lang.Exception
Deprecated. 

Description copied from class: AbstractConverter
Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type and locale. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Overrides:
unformatFromReaderForType in class AbstractConverter
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
locale - Locale
Throws:
java.lang.Exception - Unformatting is unsuccessful

unformatFromReaderForType

@Deprecated
public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
                                                             java.lang.String conversionType,
                                                             PropertyDescription descriptor)
                                           throws java.lang.Exception
Deprecated. 

Description copied from class: AbstractConverter
Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Overrides:
unformatFromReaderForType in class AbstractConverter
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
Throws:
java.lang.Exception - Unformatting is unsuccessful

unformat

@Deprecated
protected java.lang.Object unformat(java.lang.String obj,
                                               java.lang.String conversionType,
                                               PropertyDescription pd,
                                               java.util.Locale locale,
                                               Hashtable parameters)
                             throws DSETypeException
Deprecated. 

Description copied from class: AbstractConverter
Converts a string representing an object into another object. If byReference is set to true, the converter does not create a new object.

Overrides:
unformat in class AbstractConverter
Returns:
java.lang.Object
Throws:
DSETypeException

unformat

@Deprecated
protected java.lang.Object unformat(java.lang.String obj,
                                               java.lang.String conversionType,
                                               PropertyDescription pd,
                                               java.util.Locale locale)
                             throws DSETypeException
Deprecated. 

Description copied from class: AbstractConverter
Converts a string representing an object into another object. If byReference is set to true, the converter does not creates a new object.

Overrides:
unformat in class AbstractConverter
Returns:
java.lang.Object
Throws:
DSETypeException

formatToWriterForType

@Deprecated
public void formatToWriterForType(java.lang.Object value,
                                             java.lang.String conversionType,
                                             java.io.Writer writer,
                                             PropertyDescription descriptor,
                                             Hashtable parameters)
                           throws java.lang.Exception
Deprecated. 

Description copied from class: AbstractConverter
Formats the passed Object using the specified conversion type and writer passed as arguments. Parameters required by the specific type converter may be taken from the Hashtable passed as an argument.

Overrides:
formatToWriterForType in class AbstractConverter
Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescriptor
parameters - com.ibm.btt.base.Hashtable
Throws:
java.lang.Exception

formatToWriterForType

@Deprecated
public void formatToWriterForType(java.lang.Object value,
                                             java.lang.String conversionType,
                                             java.io.Writer writer,
                                             PropertyDescription descriptor,
                                             java.util.Locale locale,
                                             Hashtable parameters)
                           throws java.lang.Exception
Deprecated. 

Description copied from class: AbstractConverter
Formats the passed Object using the specified conversion type, locale, and writer passed as arguments. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Overrides:
formatToWriterForType in class AbstractConverter
Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Throws:
java.lang.Exception

formatToWriterForType

@Deprecated
public void formatToWriterForType(java.lang.Object value,
                                             java.lang.String conversionType,
                                             java.io.Writer writer,
                                             PropertyDescription descriptor,
                                             java.util.Locale locale)
                           throws java.lang.Exception
Deprecated. 

Description copied from class: AbstractConverter
Formats the passed Object using the specified conversion type, locale, and writer passed as arguments. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Overrides:
formatToWriterForType in class AbstractConverter
Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
locale - Locale
Throws:
java.lang.Exception

formatToWriterForType

@Deprecated
public void formatToWriterForType(java.lang.Object value,
                                             java.lang.String conversionType,
                                             java.io.Writer writer,
                                             PropertyDescription descriptor)
                           throws java.lang.Exception
Deprecated. 

Description copied from class: AbstractConverter
Formats the passed Object using the specified conversion type and writer passed as arguments. Parameters required by the specific type converter may be taken from the owner descriptor by using the descriptor passed as an argument.

Overrides:
formatToWriterForType in class AbstractConverter
Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescriptor
Throws:
java.lang.Exception - Formatting is unsuccessful.

getImplClass

public java.lang.Class<?> getImplClass()

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011