Class AbstractDataType<U,T extends U>
java.lang.Object
net.sf.dynamicreports.report.base.datatype.AbstractDataType<U,T>
- All Implemented Interfaces:
Serializable
,DRIDataType<U,
T>
- Direct Known Subclasses:
BooleanType
,CharacterType
,DateType
,DRDataType
,ListType
,NumberType
,StringType
Abstract AbstractDataType class.
- Author:
- Ricardo Mariaca
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetHorizontalTextAlignment.getPattern.getValueClass.DRIValueFormatter<?,
? extends U> getValueFormatter.stringToValue
(String value, Locale locale) stringToValue.stringToValue
(String name, ReportParameters reportParameters) stringToValue.stringToValue
(DRIValue<String> value, ReportParameters reportParameters) stringToValue.valueToString
(String name, ReportParameters reportParameters) valueToString.valueToString
(DRIValue<? extends U> value, ReportParameters reportParameters) valueToString.valueToString
(U value, Locale locale) valueToString.
-
Constructor Details
-
AbstractDataType
public AbstractDataType()
-
-
Method Details
-
getPattern
getPattern.
- Specified by:
getPattern
in interfaceDRIDataType<U,
T extends U> - Returns:
- a
String
object.
-
getValueFormatter
getValueFormatter.
- Specified by:
getValueFormatter
in interfaceDRIDataType<U,
T extends U> - Returns:
- a
DRIValueFormatter
object.
-
getHorizontalTextAlignment
getHorizontalTextAlignment.
- Specified by:
getHorizontalTextAlignment
in interfaceDRIDataType<U,
T extends U> - Returns:
- a
HorizontalTextAlignment
object.
-
valueToString
valueToString.
- Specified by:
valueToString
in interfaceDRIDataType<U,
T extends U> - Parameters:
value
- a U object.locale
- aLocale
object.- Returns:
- a
String
object.
-
valueToString
valueToString.
- Specified by:
valueToString
in interfaceDRIDataType<U,
T extends U> - Parameters:
value
- aDRIValue
object.reportParameters
- aReportParameters
object.- Returns:
- a
String
object.
-
valueToString
valueToString.
- Specified by:
valueToString
in interfaceDRIDataType<U,
T extends U> - Parameters:
name
- aString
object.reportParameters
- aReportParameters
object.- Returns:
- a
String
object.
-
stringToValue
stringToValue.
- Specified by:
stringToValue
in interfaceDRIDataType<U,
T extends U> - Parameters:
value
- aString
object.locale
- aLocale
object.- Returns:
- a T object.
- Throws:
DRException
- if any.
-
stringToValue
public T stringToValue(DRIValue<String> value, ReportParameters reportParameters) throws DRException stringToValue.
- Specified by:
stringToValue
in interfaceDRIDataType<U,
T extends U> - Parameters:
value
- aDRIValue
object.reportParameters
- aReportParameters
object.- Returns:
- a T object.
- Throws:
DRException
- if any.
-
stringToValue
stringToValue.
- Specified by:
stringToValue
in interfaceDRIDataType<U,
T extends U> - Parameters:
name
- aString
object.reportParameters
- aReportParameters
object.- Returns:
- a T object.
- Throws:
DRException
- if any.
-
getValueClass
getValueClass.
- Specified by:
getValueClass
in interfaceDRIDataType<U,
T extends U> - Returns:
- a
Class
object.
-