|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.types.AbstractConverter
public abstract class AbstractConverter
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.
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_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 | |
---|---|
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 |
---|
protected java.util.Hashtable keyValuePairs
Constructor Detail |
---|
public AbstractConverter() throws DSETypeException
DSETypeException
public AbstractConverter(java.lang.String[] supportedConversionTypes, java.util.Hashtable keyValuePairs) throws DSETypeException
supportedConversionTypes
- String[] - The supported conversion typeskeyValuePairs
- Hashtable - The parameterisation for this Converter
DSETypeException
Method Detail |
---|
public java.lang.Object convertFrom(java.lang.Object obj, PropertyDescription pd) throws DSETypeException
convertFrom
in interface Conversion
obj
- java.lang.Objectpd
- com.ibm.btt.base.types.PropertyDescription
DSETypeException
public java.lang.Object convertFrom(java.lang.Object obj, PropertyDescription pd, boolean byReference) throws DSETypeException
convertFrom
in interface Conversion
obj
- java.lang.Objectpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- boolean
DSETypeException
public java.lang.Object convertFrom(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference) throws DSETypeException
convertFrom
in interface Conversion
obj
- java.lang.ObjectconvType
- java.lang.Stringpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- boolean
DSETypeException
public java.lang.Object convertFrom(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference, java.util.Locale locale) throws DSETypeException
convertFrom
in interface Conversion
obj
- java.lang.ObjectconvType
- java.lang.Stringpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- booleanlocale
- Locale
DSETypeException
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
convertFrom
in interface Conversion
obj
- java.lang.ObjectconvType
- java.lang.Stringpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- booleanlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
public java.lang.Object convertTo(java.lang.Object obj, PropertyDescription pd) throws DSETypeException
convertTo
in interface Conversion
obj
- java.lang.Objectpd
- com.ibm.btt.base.types.PropertyDescription
DSETypeException
public java.lang.Object convertTo(java.lang.Object obj, PropertyDescription pd, boolean byReference) throws DSETypeException
convertTo
in interface Conversion
obj
- java.lang.Objectpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- boolean
DSETypeException
public java.lang.Object convertTo(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference) throws DSETypeException
convertTo
in interface Conversion
obj
- java.lang.ObjectconvType
- java.lang.Stringpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- boolean
DSETypeException
public java.lang.Object convertTo(java.lang.Object obj, java.lang.String convType, PropertyDescription pd, boolean byReference, java.util.Locale locale) throws DSETypeException
convertTo
in interface Conversion
obj
- java.lang.ObjectconvType
- java.lang.Stringpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- booleanlocale
- Locale
DSETypeException
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
convertTo
in interface Conversion
obj
- java.lang.ObjectconvType
- java.lang.Stringpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- booleanlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
public void formatToWriter(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor) throws DSETypeException
formatToWriter
in interface Conversion
value
- Object ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescription
DSETypeException
- Formatting is unsuccessful.public void formatToWriter(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale) throws DSETypeException
formatToWriter
in interface Conversion
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionlocale
- Locale
DSETypeException
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
formatToWriter
in interface Conversion
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
public void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor) throws java.lang.Exception
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptor
java.lang.Exception
- Formatting is unsuccessful.public void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, Hashtable parameters) throws java.lang.Exception
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptorparameters
- com.ibm.btt.base.Hashtable
-
- Exception Formatting is unsuccessful
java.lang.Exception
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
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionlocale
- Locale
-
- Exception Formatting is unsuccessful
java.lang.Exception
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
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
-
- Exception Formatting is unsuccessful
java.lang.Exception
public java.util.Hashtable getParameters()
public java.lang.String[] getSupportedConversionTypes()
getSupportedConversionTypes
in interface Conversion
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
s
- java.io.ObjectInput
java.io.IOException.
java.lang.ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException
public boolean supportsConversionType(java.lang.String conversionType)
supportsConversionType
in interface Conversion
conversionType
- String
protected java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale) throws DSETypeException
DSETypeException
protected java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale, Hashtable parameters) throws DSETypeException
DSETypeException
public java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor) throws DSETypeException
unformatFromReader
in interface Conversion
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescription
-
- DSETypeException Unformatting is unsuccessful
DSETypeException
- - Unformatting is unsuccessfulpublic java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, Hashtable parameters) throws DSETypeException
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- - Unformatting is unsuccessfulpublic java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale) throws DSETypeException
unformatFromReader
in interface Conversion
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Locale
DSETypeException
- - Unformatting is unsuccessful.public java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters) throws DSETypeException
unformatFromReader
in interface Conversion
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- Unformatting is unsuccessfulpublic java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor) throws java.lang.Exception
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescription
java.lang.Exception
- Unformatting is unsuccessfulpublic java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, Hashtable parameters) throws java.lang.Exception
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionparameters
- com.ibm.btt.base.Hashtable
java.lang.Exception
- Unformatting is unsuccessfulpublic java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale) throws java.lang.Exception
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Locale
java.lang.Exception
- Unformatting is unsuccessfulpublic java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters) throws java.lang.Exception
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
-
- Exception Unformatting is unsuccessful
java.lang.Exception
public void validateParams(PropertyDescription pd) throws DSETypeException
validateParams
in interface Conversion
pd
- com.ibm.btt.base.types.PropertyDescription
DSETypeException
- - If parameter validation failspublic void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
s
- java.io.ObjectOutput
java.io.IOException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |