|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.function.AbstractExpression
org.pentaho.reporting.engine.classic.core.function.ConvertToDateExpression
public class ConvertToDateExpression
Parses a string into a date using the given date-format.
SimpleDateFormat
,
Serialized FormConstructor Summary | |
---|---|
ConvertToDateExpression()
Default Constructor. |
Method Summary | |
---|---|
String |
getField()
Returns the name of the data-row column from where to read the string that should be parsed. |
String |
getFormat()
Returns the SimpleDateFormat pattern that is used for the parsing. |
Locale |
getLocale()
Returns the locale that is used for the parsing. |
TimeZone |
getTimeZone()
|
Object |
getValue()
Parses the value read from the column specified by the given field-name and tries to parse it into a Date using the given SimpleDateFormat-pattern. |
void |
setField(String field)
Defines the name of the data-row column from where to read the string that should be parsed. |
void |
setFormat(String format)
Defines the SimpleDateFormat pattern that is used for the parsing. |
void |
setLocale(Locale locale)
Defines the locale that is used for the parsing. |
void |
setTimeZone(TimeZone timeZone)
|
Methods inherited from class org.pentaho.reporting.engine.classic.core.function.AbstractExpression |
---|
clone, getDataRow, getDependencyLevel, getInstance, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvertToDateExpression()
Method Detail |
---|
public String getField()
public void setField(String field)
field
- the name of the field.public String getFormat()
SimpleDateFormat
public void setFormat(String format)
format
- the pattern string.SimpleDateFormat
public Locale getLocale()
public void setLocale(Locale locale)
locale
- the locale.public TimeZone getTimeZone()
public void setTimeZone(TimeZone timeZone)
public Object getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |