public abstract class JRAbstractTextDataSource extends Object implements JRDataSource
| Constructor and Description |
|---|
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() |
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 |
setTimeZone(String timeZoneId) |
void |
setTimeZone(TimeZone timeZone) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFieldValue, nextprotected Object convertNumber(Number number, Class<?> valueClass) throws JRException
JRExceptionprotected Number getFormattedNumber(NumberFormat numberFormat, String fieldValue, Class<?> valueClass) throws ParseException
FormatUtils.getFormattedNumber(NumberFormat, String, Class)ParseExceptionprotected Date getFormattedDate(DateFormat dateFormat, String fieldValue, Class<?> valueClass) throws ParseException
FormatUtils.getFormattedDate(DateFormat, String, Class)ParseExceptionprotected org.apache.commons.beanutils.locale.LocaleConvertUtilsBean getConvertBean()
public void setTextAttributes(JRAbstractTextDataSource textDataSource)
textDataSource - the object to copy the attributes frompublic 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 © 2015. All rights reserved.