public abstract class JRAbstractTextDataSource extends Object implements JRDataSource
Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_CANNOT_CONVERT_FIELD_TYPE |
static String |
EXCEPTION_MESSAGE_KEY_CANNOT_MODIFY_PROPERTIES_AFTER_START |
static String |
EXCEPTION_MESSAGE_KEY_NODE_NOT_AVAILABLE |
static String |
EXCEPTION_MESSAGE_KEY_NULL_DOCUMENT |
static String |
EXCEPTION_MESSAGE_KEY_NULL_SELECT_EXPRESSION |
static String |
EXCEPTION_MESSAGE_KEY_UNKNOWN_COLUMN_NAME |
static String |
EXCEPTION_MESSAGE_KEY_UNKNOWN_NUMBER_TYPE |
Modifier | Constructor and Description |
---|---|
protected |
JRAbstractTextDataSource() |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertNumber(Number number,
Class<?> valueClass) |
protected Object |
convertStringValue(String text,
Class<?> valueClass) |
protected org.apache.commons.beanutils.locale.LocaleConvertUtilsBean |
getConvertBean() |
String |
getDatePattern() |
protected Date |
getFormattedDate(DateFormat dateFormat,
String fieldValue,
Class<?> valueClass)
Deprecated.
|
protected Number |
getFormattedNumber(NumberFormat numberFormat,
String fieldValue,
Class<?> valueClass)
Deprecated.
|
Locale |
getLocale() |
String |
getNumberPattern() |
TextDataSourceAttributes |
getTextAttributes() |
TimeZone |
getTimeZone() |
void |
setDatePattern(String datePattern) |
void |
setLocale(Locale locale) |
void |
setLocale(String locale) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldValue, next
public static final String EXCEPTION_MESSAGE_KEY_CANNOT_CONVERT_FIELD_TYPE
public static final String EXCEPTION_MESSAGE_KEY_CANNOT_MODIFY_PROPERTIES_AFTER_START
public static final String EXCEPTION_MESSAGE_KEY_NODE_NOT_AVAILABLE
public static final String EXCEPTION_MESSAGE_KEY_NULL_DOCUMENT
public static final String EXCEPTION_MESSAGE_KEY_NULL_SELECT_EXPRESSION
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_COLUMN_NAME
public static final String EXCEPTION_MESSAGE_KEY_UNKNOWN_NUMBER_TYPE
protected Object convertNumber(Number number, Class<?> valueClass) throws JRException
JRException
protected Number getFormattedNumber(NumberFormat numberFormat, String fieldValue, Class<?> valueClass) throws ParseException
FormatUtils.getFormattedNumber(NumberFormat, String, Class)
ParseException
protected Date getFormattedDate(DateFormat dateFormat, String fieldValue, Class<?> valueClass) throws ParseException
FormatUtils.getFormattedDate(DateFormat, String, Class)
ParseException
protected org.apache.commons.beanutils.locale.LocaleConvertUtilsBean getConvertBean()
public void setTextAttributes(JRAbstractTextDataSource textDataSource)
textDataSource
- the object to copy the attributes frompublic TextDataSourceAttributes getTextAttributes()
public void setTextAttributes(TextDataSourceAttributes attributes)
public Locale getLocale()
public void setLocale(Locale locale)
public void setLocale(String locale)
public String getDatePattern()
public void setDatePattern(String datePattern)
public String getNumberPattern()
public void setNumberPattern(String numberPattern)
public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public void setTimeZone(String timeZoneId)
Copyright © 2017. All rights reserved.