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 ObjectconvertNumber(Number number, Class<?> valueClass) protected ObjectconvertStringValue(String text, Class<?> valueClass) protected org.apache.commons.beanutils.locale.LocaleConvertUtilsBeanvoidsetDatePattern(String datePattern) voidvoidvoidsetNumberPattern(String numberPattern) voidsetTextAttributes(JRAbstractTextDataSource textDataSource) Copy the text parsing attributes for another object.voidsetTextAttributes(TextDataSourceAttributes attributes) voidsetTimeZone(String timeZoneId) voidsetTimeZone(TimeZone timeZone) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-