|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.ibm.dse.base.types.AbstractConverter
|
+--com.ibm.dse.base.types.ext.TimeConverter
Converter for business objects of Type Date
| Fields inherited from class com.ibm.dse.base.types.AbstractConverter |
keyValuePairs |
| Constructor Summary | |
TimeConverter(java.lang.String[] supportedConversionTypes,
java.util.Hashtable keyValuePairs)
Creates a TimeConverter object. |
|
| Method Summary | |
void |
formatToWriterForType(java.lang.Object value,
java.lang.String conversionType,
java.io.Writer writer,
PropertyDescription descriptor)
The value passed as an Object is formatted using the specified conversion type and writer passed as argument. |
void |
formatToWriterForType(java.lang.Object value,
java.lang.String conversionType,
java.io.Writer writer,
PropertyDescription descriptor,
java.util.Locale locale)
The value passed as an Object is formatted using the specified conversion type, locale and writer passed as argument. |
java.lang.String |
getMask()
Gets the value of the mask attribute |
void |
setAmString(java.lang.String anAmString)
Sets the value of the amString attribute. |
void |
setHours24(boolean anHours24)
Sets the value of the hours24 attribute. |
void |
setMask(java.lang.String dateMask)
Sets the value of the mask attribute. |
void |
setPmString(java.lang.String aPmString)
Sets the value of the pmString attribute. |
java.lang.Object |
unformatFromReaderForType(java.io.Reader reader,
java.lang.String conversionType,
PropertyDescription descriptor)
Converts the stream passed to an Object 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 reader passed to construct an Object of the correct Type using the appropriate conversion type and locale. |
| Methods inherited from class com.ibm.dse.base.types.AbstractConverter |
formatToWriter,
formatToWriter,
getParameters,
getSupportedConversionTypes,
supportsConversionType,
unformatFromReader,
unformatFromReader |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public TimeConverter(java.lang.String[] supportedConversionTypes,
java.util.Hashtable keyValuePairs)
throws DSETypeException
supportedConversionTypes - java.lang.String[]keyValuePairs - java.util.Hashtable| Method Detail |
public void formatToWriterForType(java.lang.Object value,
java.lang.String conversionType,
java.io.Writer writer,
PropertyDescription descriptor)
throws java.io.IOException,
DSETypeException
value - ObjectconversionType - Stringwriter - Writerdescriptor - PropertyDescriptor
public void formatToWriterForType(java.lang.Object value,
java.lang.String conversionType,
java.io.Writer writer,
PropertyDescription descriptor,
java.util.Locale locale)
throws java.io.IOException
value - Objectwriter - Writerdescriptor - PropertyDescriptorlocale - Localepublic java.lang.String getMask()
public void setAmString(java.lang.String anAmString)
anAmString - java.lang.Stringpublic void setHours24(boolean anHours24)
anHours24 - booleanpublic void setMask(java.lang.String dateMask)
dateMask - java.lang.Stringpublic void setPmString(java.lang.String aPmString)
aPmString - java.lang.String
public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
java.lang.String conversionType,
PropertyDescription descriptor)
throws DSETypeException,
java.io.IOException
reader - ReaderconversionType - Stringdescriptor - PropertyDescription
public java.lang.Object unformatFromReaderForType(java.io.Reader reader,
java.lang.String conversionType,
PropertyDescription descriptor,
java.util.Locale locale)
throws DSETypeException,
java.io.IOException
reader - ReaderconversionType - Stringdescriptor - PropertyDescriptionlocale - Locale
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||