|
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.impl.BaseConverter<K,T>
public abstract class BaseConverter<K,T extends BaseConverter.FormatParamBeam>
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 |
---|
public BaseConverter() throws DSETypeException
DSETypeException
public BaseConverter(java.lang.String[] arg0, java.util.Hashtable<?,?> arg1) throws DSETypeException
DSETypeException
Method Detail |
---|
public java.lang.String format(K value, T params, java.lang.String convType, java.util.Locale locale) throws DSETypeException
value
- The object to be converted toparams
- Conversion parameters defined by btt typeconvType
- Conversion type defined by btt typelocale
- Locale
DSETypeException
- Throw DSETypeException when failed to convert specified object to stringpublic java.lang.String format(K value, T params, java.lang.String convType, java.util.Locale locale, java.util.TimeZone timezone) throws DSETypeException
DSETypeException
public K unformat(java.lang.String value, T params, java.lang.String convType, java.util.Locale locale) throws DSETypeException
value
- Input stringparams
- Conversion parameters defined by btt typeconvType
- Conversion type defined by btt typelocale
- Locale
DSETypeException
- Throw DSETypeException when failed to convert the input string to specified objectpublic K unformat(java.lang.String value, T params, java.lang.String convType, java.util.Locale locale, java.util.TimeZone timezone) throws DSETypeException
DSETypeException
protected java.util.TimeZone getTimeZone()
protected java.lang.String readString(java.io.Reader reader) throws DSETypeException
DSETypeException
protected void writeString(java.lang.String str, java.io.Writer writer) throws DSETypeException
DSETypeException
protected T getParameterBean() throws java.lang.Exception
java.lang.Exception
protected java.lang.Object getParameter(java.lang.String key, java.util.Hashtable<?,?> parameters, PropertyDescription descriptor, java.lang.String convType)
public java.lang.Object convertFrom(java.lang.Object obj, PropertyDescription pd) throws DSETypeException
convertFrom
in interface Conversion
convertFrom
in class AbstractConverter
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
AbstractConverter
convertFrom
in interface Conversion
convertFrom
in class AbstractConverter
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
AbstractConverter
convertFrom
in interface Conversion
convertFrom
in class AbstractConverter
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
AbstractConverter
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
AbstractConverter
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, PropertyDescription pd) throws DSETypeException
AbstractConverter
convertTo
in interface Conversion
convertTo
in class AbstractConverter
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
AbstractConverter
convertTo
in interface Conversion
convertTo
in class AbstractConverter
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
AbstractConverter
convertTo
in interface Conversion
convertTo
in class AbstractConverter
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
AbstractConverter
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
AbstractConverter
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 formatToWriter(java.lang.Object value, java.lang.String convType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters) throws DSETypeException
AbstractConverter
formatToWriter
in interface Conversion
formatToWriter
in class AbstractConverter
value
- ObjectconvType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
public void formatToWriter(java.lang.Object arg0, java.lang.String arg1, java.io.Writer arg2, PropertyDescription arg3, java.util.Locale arg4) throws DSETypeException
AbstractConverter
formatToWriter
in interface Conversion
formatToWriter
in class AbstractConverter
arg0
- Objectarg1
- Stringarg2
- Writerarg3
- PropertyDescriptionarg4
- Locale
DSETypeException
public void formatToWriter(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor) throws DSETypeException
AbstractConverter
formatToWriter
in interface Conversion
formatToWriter
in class AbstractConverter
value
- Object ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescription
DSETypeException
- Formatting is unsuccessful.public java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String convType, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters) throws DSETypeException
AbstractConverter
unformatFromReader
in interface Conversion
unformatFromReader
in class AbstractConverter
reader
- ReaderconvType
- Stringdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- Unformatting is unsuccessfulprotected java.lang.Object unformatFromString(java.lang.String convType, java.util.Locale locale, T paramBean, java.lang.String stringValue) throws DSETypeException
DSETypeException
public java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, Hashtable parameters) throws DSETypeException
AbstractConverter
unformatFromReader
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionparameters
- com.ibm.btt.base.Hashtable
DSETypeException
- - Unformatting is unsuccessfulpublic java.lang.Object unformatFromReader(java.io.Reader arg0, java.lang.String arg1, PropertyDescription arg2, java.util.Locale arg3) throws DSETypeException
AbstractConverter
unformatFromReader
in interface Conversion
unformatFromReader
in class AbstractConverter
arg0
- Readerarg1
- Stringarg2
- PropertyDescriptionarg3
- Locale
DSETypeException
- - Unformatting is unsuccessful.public java.lang.Object unformatFromReader(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor) throws DSETypeException
AbstractConverter
unformatFromReader
in interface Conversion
unformatFromReader
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescription
DSETypeException
- - Unformatting is unsuccessful@Deprecated 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
java.lang.Exception
- Unformatting is unsuccessful@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
AbstractConverter
unformatFromReaderForType
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
java.lang.Exception
@Deprecated public java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale) throws java.lang.Exception
AbstractConverter
unformatFromReaderForType
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Locale
java.lang.Exception
- Unformatting is unsuccessful@Deprecated public java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor) throws java.lang.Exception
AbstractConverter
unformatFromReaderForType
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescription
java.lang.Exception
- Unformatting is unsuccessful@Deprecated protected java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale, Hashtable parameters) throws DSETypeException
AbstractConverter
unformat
in class AbstractConverter
DSETypeException
@Deprecated protected java.lang.Object unformat(java.lang.String obj, java.lang.String conversionType, PropertyDescription pd, java.util.Locale locale) throws DSETypeException
AbstractConverter
unformat
in class AbstractConverter
DSETypeException
@Deprecated public void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, Hashtable parameters) throws java.lang.Exception
AbstractConverter
formatToWriterForType
in class AbstractConverter
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptorparameters
- com.ibm.btt.base.Hashtable
java.lang.Exception
@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
AbstractConverter
formatToWriterForType
in class AbstractConverter
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
java.lang.Exception
@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
AbstractConverter
formatToWriterForType
in class AbstractConverter
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionlocale
- Locale
java.lang.Exception
@Deprecated public void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor) throws java.lang.Exception
AbstractConverter
formatToWriterForType
in class AbstractConverter
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptor
java.lang.Exception
- Formatting is unsuccessful.public java.lang.Class<?> getImplClass()
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |