|
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
com.ibm.btt.base.types.KCollConverter
public class KCollConverter
This class is a generic Converter for compound business objects that are KeyedCollections. This class also provides an extension point for all specific Converters for compound business objects that are KeyedCollections.
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 | |
---|---|
KCollConverter()
This constructor creates a KCollConverter that supports the conversion types passed as argument. |
|
KCollConverter(java.lang.String[] supportedConversionTypes,
java.util.Hashtable keyValuePairs)
This constructor creates a KCollConverter that supports the conversion types passed as argument. |
Method Summary | |
---|---|
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,
java.lang.String convType,
PropertyDescription pd,
boolean byReference,
java.util.Locale locale)
Converts an input KeyedCollection 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 KeyedCollection into a proper object handled by the invoker. |
void |
formatToWriterForType(java.lang.Object value,
java.lang.String conversionType,
java.io.Writer writer,
PropertyDescription descriptor,
Hashtable parameters)
Formats the object using the specified conversion type and the 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 object using the specified conversion type, locale, and writer passed as arguments. |
java.lang.Object |
unformatFromReaderForType(java.io.Reader reader,
java.lang.String conversionType,
PropertyDescription descriptor,
Hashtable parameters)
Constructs an Object of the correct Type using the specified conversion type and reader. |
java.lang.Object |
unformatFromReaderForType(java.io.Reader reader,
java.lang.String conversionType,
PropertyDescription descriptor,
java.util.Locale locale,
Hashtable parameters)
Constructs an Object of the correct Type using the specified conversion type, reader, and locale. |
Methods inherited from class com.ibm.btt.base.types.AbstractConverter |
---|
convertFrom, convertFrom, convertFrom, convertTo, convertTo, convertTo, formatToWriter, formatToWriter, formatToWriter, formatToWriterForType, formatToWriterForType, getParameters, getSupportedConversionTypes, readExternal, supportsConversionType, unformat, unformat, unformatFromReader, unformatFromReader, unformatFromReader, unformatFromReader, unformatFromReaderForType, unformatFromReaderForType, validateParams, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KCollConverter() throws DSETypeException
DSETypeException
- - Conversion types passed to superclass is null or emptypublic KCollConverter(java.lang.String[] supportedConversionTypes, java.util.Hashtable keyValuePairs) throws DSETypeException
supportedConversionTypes
- String[]keyValuePairs
- Hashtable
DSETypeException
- - Conversion types passed to superclass is null or emptyMethod Detail |
---|
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
convertFrom
in class AbstractConverter
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
convertFrom
in class AbstractConverter
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, java.lang.String convType, PropertyDescription pd, boolean byReference, java.util.Locale locale) throws DSETypeException
convertTo
in interface Conversion
convertTo
in class AbstractConverter
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
convertTo
in class AbstractConverter
obj
- java.lang.ObjectconvType
- java.lang.Stringpd
- com.ibm.btt.base.types.PropertyDescriptionbyReference
- booleanlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
public void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, Hashtable parameters) throws java.lang.Exception
formatToWriterForType
in class AbstractConverter
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionparameters
- 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, Hashtable parameters) throws java.lang.Exception
formatToWriterForType
in class AbstractConverter
value
- ObjectconversionType
- Stringdescriptor
- PropertyDescriptionwriter
- Writerlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
-
- Exception Formatting is unsuccessful
java.lang.Exception
public java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, Hashtable parameters) throws java.lang.Exception
unformatFromReaderForType
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionparameters
- com.ibm.btt.base.Hashtable
-
- DSETypeException Unformatting is unsuccessful
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
unformatFromReaderForType
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
-
- Exception Unformatting is unsuccessful
java.lang.Exception
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |