|
IBM Branch 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.ext.StringConverter
This is the converter for business objects of the String type.
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_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 | |
---|---|
StringConverter()
This constructor creates a StringConverter which supports the conversion types passed as arguments. |
|
StringConverter(java.lang.String[] supportedConversionTypes,
java.util.Hashtable keyValuePairs)
This constructor creates a StringConverter which supports the conversion types passed as arguments. |
Method Summary | |
---|---|
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. |
protected java.lang.Object |
unformat(java.lang.String aString,
java.lang.String convType,
PropertyDescription descriptor,
java.util.Locale locale)
Converts a String into another String. |
protected java.lang.Object |
unformat(java.lang.String aString,
java.lang.String convType,
PropertyDescription descriptor,
java.util.Locale locale,
Hashtable parameters)
Converts a String into another String. |
java.lang.Object |
unformatFromReaderForType(java.io.Reader reader,
java.lang.String conversionType,
PropertyDescription descriptor,
Hashtable parameters)
Converts the stream passed to a String using the appropriate conversion type. |
java.lang.Object |
unformatFromReaderForType(java.io.Reader reader,
java.lang.String conversionType,
PropertyDescription descriptor,
java.util.Locale locale,
Hashtable parameters)
Uses the reader to construct an Object of the correct type using the appropriate conversion type and locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringConverter() throws DSETypeException
DSETypeException
- - If the supportedConversionTypes parameter passed to the superclass is null or emptypublic StringConverter(java.lang.String[] supportedConversionTypes, java.util.Hashtable keyValuePairs) throws DSETypeException
supportedConversionTypes
- String[]keyValuePairs
- Hashtable
DSETypeException
- Conversion types passed to superclass is null or empty.Method Detail |
public void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, Hashtable parameters) throws java.io.IOException
formatToWriterForType
in class AbstractConverter
value
- ObjectconversionType
- Stringwriter
- Writerdescriptor
- PropertyDescriptionparameters
- com.ibm.btt.base.Hashtable
java.io.IOException
- - If an I/O error occurspublic void formatToWriterForType(java.lang.Object value, java.lang.String conversionType, java.io.Writer writer, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters) throws java.io.IOException
formatToWriterForType
in class AbstractConverter
value
- Objectdescriptor
- PropertyDescriptorwriter
- Writerlocale
- Localeparameters
- com.ibm.btt.base.HashtableconversionType
- String
java.io.IOException
- - If an I/O error occursprotected java.lang.Object unformat(java.lang.String aString, java.lang.String convType, PropertyDescription descriptor, java.util.Locale locale) throws DSETypeException
unformat
in class AbstractConverter
DSETypeException
protected java.lang.Object unformat(java.lang.String aString, java.lang.String convType, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters) throws DSETypeException
unformat
in class AbstractConverter
DSETypeException
public java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, Hashtable parameters) throws java.io.IOException
unformatFromReaderForType
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionparameters
- com.ibm.btt.base.Hashtable
java.io.IOException
- - If an I/O error occurspublic java.lang.Object unformatFromReaderForType(java.io.Reader reader, java.lang.String conversionType, PropertyDescription descriptor, java.util.Locale locale, Hashtable parameters) throws java.io.IOException
unformatFromReaderForType
in class AbstractConverter
reader
- ReaderconversionType
- Stringdescriptor
- PropertyDescriptionlocale
- Localeparameters
- com.ibm.btt.base.Hashtable
java.io.IOException
- - If an I/O error occurs
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |