Package net.sf.jasperreports.engine.data
Class JRAbstractTextDataSource
java.lang.Object
net.sf.jasperreports.engine.data.JRAbstractTextDataSource
- All Implemented Interfaces:
JRDataSource
- Direct Known Subclasses:
AbstractXlsDataSource
,AbstractXmlDataSource
,JRCsvDataSource
,JsonDataSource
,JsonQLDataSource
Abstract text data source, containing methods used to parse text
data into numerical or date values.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
convertNumber
(Number number, Class<?> valueClass) protected Object
convertStringValue
(String text, Class<?> valueClass) protected org.apache.commons.beanutils.locale.LocaleConvertUtilsBean
void
setDatePattern
(String datePattern) void
void
void
setNumberPattern
(String numberPattern) void
setTextAttributes
(JRAbstractTextDataSource textDataSource) Copy the text parsing attributes for another object.void
setTextAttributes
(TextDataSourceAttributes attributes) void
setTimeZone
(String timeZoneId) void
setTimeZone
(TimeZone timeZone) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.jasperreports.engine.JRDataSource
getFieldValue, next
-
Field Details
-
EXCEPTION_MESSAGE_KEY_CANNOT_CONVERT_FIELD_TYPE
- See Also:
-
EXCEPTION_MESSAGE_KEY_CANNOT_MODIFY_PROPERTIES_AFTER_START
- See Also:
-
EXCEPTION_MESSAGE_KEY_NODE_NOT_AVAILABLE
- See Also:
-
EXCEPTION_MESSAGE_KEY_NULL_DOCUMENT
- See Also:
-
EXCEPTION_MESSAGE_KEY_NULL_SELECT_EXPRESSION
- See Also:
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_COLUMN_NAME
- See Also:
-
EXCEPTION_MESSAGE_KEY_UNKNOWN_NUMBER_TYPE
- See Also:
-
-
Constructor Details
-
JRAbstractTextDataSource
protected JRAbstractTextDataSource()
-
-
Method Details
-
convertStringValue
-
convertNumber
- Throws:
JRException
-
getConvertBean
protected org.apache.commons.beanutils.locale.LocaleConvertUtilsBean getConvertBean() -
setTextAttributes
Copy the text parsing attributes for another object.- Parameters:
textDataSource
- the object to copy the attributes from
-
getTextAttributes
-
setTextAttributes
-
getLocale
-
setLocale
-
setLocale
-
getDatePattern
-
setDatePattern
-
getNumberPattern
-
setNumberPattern
-
getTimeZone
-
setTimeZone
-
setTimeZone
-