IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.base.types
Class AbstractConverter

java.lang.Object
  extended by com.ibm.btt.base.types.AbstractConverter
All Implemented Interfaces:
Conversion, TypeConstants, java.io.Externalizable, java.io.Serializable
Direct Known Subclasses:
DateConverter, FloatConverter, ICollConverter, IntegerConverter, KCollConverter, NumericStringConverter, StringConverter, TimeConverter

public abstract class AbstractConverter
extends java.lang.Object
implements Conversion, TypeConstants, java.io.Externalizable

This class resides at the top of the Converter hierarchy and provides an abstract implementation of the Conversion interface for Type-specific Converters to extend.

See Also:
Serialized Form

Field Summary
protected  java.util.Hashtable keyValuePairs
          The parameterization for this Converter, understood by concrete subclasses
 
Fields inherited from interface com.ibm.btt.base.types.TypeConstants
amended, CONV_TYPE_DEFAULT, CONV_TYPE_HOST, 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
AbstractConverter()
          This constructor creates an instance of a Converter that supports the passed conversion types.
AbstractConverter(java.lang.String[] supportedConversionTypes, java.util.Hashtable keyValuePairs)
          This constructor creates an instance of a Converter that supports the passed conversion types.
 
Method Summary
 java.lang.Object convertFrom(java.lang.Object obj, PropertyDescription pd)
          Converts an input object into a proper object handled by the converter.
 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.
 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 value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale)
          Formats the passed Object using the specified conversion type, locale, and writer passed as arguments.
 void formatToWriter(java.lang.Object value, java.lang.String conversionType, 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)
          Formats the passed Object using the specified conversion type and writer passed as arguments.
 void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, Hashtable parameters)
          Formats the passed Object using the specified conversion type and writer passed as arguments.
 void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale)
          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, java.util.Locale locale, Hashtable parameters)
          Formats the passed Object using the specified conversion type, locale, and writer passed as arguments.
 java.util.Hashtable getParameters()
          Returns the keyValuePairs Hashtable.
 java.lang.String[] getSupportedConversionTypes()
          Returns an array of conversion types supported by this Converter.
 void readExternal(java.io.ObjectInput s)
          Invokes the object creation from an ObjectInput.
 boolean supportsConversionType(java.lang.String conversionType)
          Returns a flag indicating whether the conversion type passed as argument is supported.
protected  java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale)
          Converts a string representing an object into another object.
protected  java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale, Hashtable parameters)
          Converts a string representing an object into another object.
 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 reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale)
          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 conversionType, 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)
          Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type.
 java.lang.Object unformatFromReaderForType(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 unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale)
          Uses the passed reader to construct an Object of the correct Type using the appropriate conversion type and locale.
 java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, 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 locale.
 void validateParams(PropertyDescription pd)
          Validates the parameters externaly defined for this converter.
 void writeExternal(java.io.ObjectOutput s)
          Provides concrete serialization handling for Context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyValuePairs

protected java.util.Hashtable keyValuePairs
The parameterization for this Converter, understood by concrete subclasses

Constructor Detail

AbstractConverter

public AbstractConverter()
                  throws DSETypeException
This constructor creates an instance of a Converter that supports the passed conversion types.

Throws:
DSETypeException

AbstractConverter

public AbstractConverter(java.lang.String[] supportedConversionTypes,
                         java.util.Hashtable keyValuePairs)
                  throws DSETypeException
This constructor creates an instance of a Converter that supports the passed conversion types.

Parameters:
supportedConversionTypes - String[] - The supported conversion types
keyValuePairs - Hashtable - The parameterisation for this Converter
Throws:
DSETypeException
Method Detail

convertFrom

public java.lang.Object convertFrom(java.lang.Object obj,
                                    PropertyDescription pd)
                             throws DSETypeException
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.

Specified by:
convertFrom in interface Conversion
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 conversionType,
                           java.io.Writer writer,
                           PropertyDescription descriptor)
                    throws DSETypeException
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
Parameters:
value - Object Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
Throws:
DSETypeException - Formatting is unsuccessful.

formatToWriter

public void formatToWriter(java.lang.Object value,
                           java.lang.String conversionType,
                           java.io.Writer writer,
                           PropertyDescription descriptor,
                           java.util.Locale locale)
                    throws DSETypeException
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
Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
locale - Locale
Throws:
DSETypeException

formatToWriter

public void formatToWriter(java.lang.Object value,
                           java.lang.String conversionType,
                           java.io.Writer writer,
                           PropertyDescription descriptor,
                           java.util.Locale locale,
                           Hashtable parameters)
                    throws DSETypeException
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
Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Throws:
DSETypeException

formatToWriterForType

public void formatToWriterForType(java.lang.Object value,
                                  java.lang.String conversionType,
                                  java.io.Writer writer,
                                  PropertyDescription descriptor)
                           throws java.lang.Exception
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.

Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescriptor
Throws:
java.lang.Exception - Formatting is unsuccessful.

formatToWriterForType

public void formatToWriterForType(java.lang.Object value,
                                  java.lang.String conversionType,
                                  java.io.Writer writer,
                                  PropertyDescription descriptor,
                                  Hashtable parameters)
                           throws java.lang.Exception
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.

Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescriptor
parameters - com.ibm.btt.base.Hashtable
Throws:
- - Exception Formatting is unsuccessful
java.lang.Exception

formatToWriterForType

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
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.

Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
locale - Locale
Throws:
- - Exception Formatting is unsuccessful
java.lang.Exception

formatToWriterForType

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
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.

Parameters:
value - Object
conversionType - String
writer - Writer
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Throws:
- - Exception Formatting is unsuccessful
java.lang.Exception

getParameters

public java.util.Hashtable getParameters()
Returns the keyValuePairs Hashtable.

Returns:
java.util.Hashtable

getSupportedConversionTypes

public java.lang.String[] getSupportedConversionTypes()
Returns an array of conversion types supported by this Converter.

Specified by:
getSupportedConversionTypes in interface Conversion
Returns:
String[]

readExternal

public void readExternal(java.io.ObjectInput s)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Invokes the object creation from an ObjectInput. The ObjectInput contains a context and all its children.

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
s - java.io.ObjectInput
Throws:
java.io.IOException.
java.lang.ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException

supportsConversionType

public boolean supportsConversionType(java.lang.String conversionType)
Returns a flag indicating whether the conversion type passed as argument is supported.

Specified by:
supportsConversionType in interface Conversion
Parameters:
conversionType - String
Returns:
boolean - True if the conversion type is supported

unformat

protected java.lang.Object unformat(java.lang.String obj,
                                    java.lang.String conversionType,
                                    PropertyDescription pd,
                                    java.util.Locale locale)
                             throws DSETypeException
Converts a string representing an object into another object. If byReference is set to true, the converter does not creates a new object.

Returns:
java.lang.Object
Throws:
DSETypeException

unformat

protected java.lang.Object unformat(java.lang.String obj,
                                    java.lang.String conversionType,
                                    PropertyDescription pd,
                                    java.util.Locale locale,
                                    Hashtable parameters)
                             throws DSETypeException
Converts a string representing an object into another object. If byReference is set to true, the converter does not create a new object.

Returns:
java.lang.Object
Throws:
DSETypeException

unformatFromReader

public java.lang.Object unformatFromReader(java.io.Reader reader,
                                           java.lang.String conversionType,
                                           PropertyDescription descriptor)
                                    throws DSETypeException
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
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
Returns:
Object
Throws:
- - DSETypeException Unformatting is unsuccessful
DSETypeException - - Unformatting is unsuccessful

unformatFromReader

public java.lang.Object unformatFromReader(java.io.Reader reader,
                                           java.lang.String conversionType,
                                           PropertyDescription descriptor,
                                           Hashtable parameters)
                                    throws DSETypeException
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.

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 reader,
                                           java.lang.String conversionType,
                                           PropertyDescription descriptor,
                                           java.util.Locale locale)
                                    throws DSETypeException
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
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
locale - Locale
Returns:
Object
Throws:
DSETypeException - - Unformatting is unsuccessful.

unformatFromReader

public java.lang.Object unformatFromReader(java.io.Reader reader,
                                           java.lang.String conversionType,
                                           PropertyDescription descriptor,
                                           java.util.Locale locale,
                                           Hashtable parameters)
                                    throws DSETypeException
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
Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Returns:
Object
Throws:
DSETypeException - Unformatting is unsuccessful

unformatFromReaderForType

public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
                                                  java.lang.String conversionType,
                                                  PropertyDescription descriptor)
                                           throws java.lang.Exception
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.

Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
Throws:
java.lang.Exception - Unformatting is unsuccessful

unformatFromReaderForType

public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
                                                  java.lang.String conversionType,
                                                  PropertyDescription descriptor,
                                                  Hashtable parameters)
                                           throws java.lang.Exception
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.

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

unformatFromReaderForType

public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
                                                  java.lang.String conversionType,
                                                  PropertyDescription descriptor,
                                                  java.util.Locale locale)
                                           throws java.lang.Exception
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.

Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
locale - Locale
Throws:
java.lang.Exception - Unformatting is unsuccessful

unformatFromReaderForType

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
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.

Parameters:
reader - Reader
conversionType - String
descriptor - PropertyDescription
locale - Locale
parameters - com.ibm.btt.base.Hashtable
Throws:
- - Exception Unformatting is unsuccessful
java.lang.Exception

validateParams

public void validateParams(PropertyDescription pd)
                    throws DSETypeException
Validates the parameters externaly defined for this converter.

Specified by:
validateParams in interface Conversion
Parameters:
pd - com.ibm.btt.base.types.PropertyDescription
Throws:
DSETypeException - - If parameter validation fails

writeExternal

public void writeExternal(java.io.ObjectOutput s)
                   throws java.io.IOException
Provides concrete serialization handling for Context. This method serializes the current context and all of its children.

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
s - java.io.ObjectOutput
Throws:
java.io.IOException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010