Class ConvertToDateExpression
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.function.AbstractExpression
-
- org.pentaho.reporting.engine.classic.core.function.ConvertToDateExpression
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Expression
public class ConvertToDateExpression extends AbstractExpression
Deprecated.use a formula function (ParseDate) instead.Parses a string into a date using the given date-format.- Author:
- Thomas Morgner
- See Also:
SimpleDateFormat
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConvertToDateExpression()
Deprecated.Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getField()
Deprecated.Returns the name of the data-row column from where to read the string that should be parsed.String
getFormat()
Deprecated.Returns the SimpleDateFormat pattern that is used for the parsing.Locale
getLocale()
Deprecated.Returns the locale that is used for the parsing.TimeZone
getTimeZone()
Deprecated.Object
getValue()
Deprecated.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)
Deprecated.Defines the name of the data-row column from where to read the string that should be parsed.void
setFormat(String format)
Deprecated.Defines the SimpleDateFormat pattern that is used for the parsing.void
setLocale(Locale locale)
Deprecated.Defines the locale that is used for the parsing.void
setTimeZone(TimeZone timeZone)
Deprecated.-
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
-
-
-
-
Method Detail
-
getField
public String getField()
Deprecated.Returns the name of the data-row column from where to read the string that should be parsed.- Returns:
- the field name.
-
setField
public void setField(String field)
Deprecated.Defines the name of the data-row column from where to read the string that should be parsed.- Parameters:
field
- the name of the field.
-
getFormat
public String getFormat()
Deprecated.Returns the SimpleDateFormat pattern that is used for the parsing.- Returns:
- the pattern string.
- See Also:
SimpleDateFormat
-
setFormat
public void setFormat(String format)
Deprecated.Defines the SimpleDateFormat pattern that is used for the parsing.- Parameters:
format
- the pattern string.- See Also:
SimpleDateFormat
-
getLocale
public Locale getLocale()
Deprecated.Returns the locale that is used for the parsing.- Returns:
- the locale.
-
setLocale
public void setLocale(Locale locale)
Deprecated.Defines the locale that is used for the parsing.- Parameters:
locale
- the locale.
-
getTimeZone
public TimeZone getTimeZone()
Deprecated.
-
setTimeZone
public void setTimeZone(TimeZone timeZone)
Deprecated.
-
getValue
public Object getValue()
Deprecated.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.- Returns:
- the value of the function.
-
-