DateTimeResolution Class
- java.
lang. Object - com.
microsoft. bot. dialogs. prompts. DateTimeResolution
- com.
public class DateTimeResolution
A date-time value, as recognized by the DateTimePrompt . A value can represent a date, a time, a date and time, or a range of any of these. The representation of the value is determined by the locale used to parse the input.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| DateTimeResolution() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getEnd()
Gets a human-readable represntation of the end value, for a range result. |
| java.lang.String |
getStart()
Gets a human-readable representation of the start value, for a range result. |
| java.lang.String |
getTimex()
Gets the value in TIMEX format. |
| java.lang.String |
getValue()
Gets a human-readable representation of the value, for a non-range result. |
| void |
setEnd(String end)
Sets a human-readable represntation of the end value, for a range result. |
| void |
setStart(String start)
Sets a human-readable representation of the start value, for a range result. |
| void |
setTimex(String timex)
Sets the value in TIMEX format. |
| void |
setValue(String value)
Sets a human-readable representation of the value, for a non-range result. |
Methods inherited from java.lang.Object
Constructor Details
DateTimeResolution
public DateTimeResolution()
Method Details
getEnd
public String getEnd()
Gets a human-readable represntation of the end value, for a range result.
Returns:
getStart
public String getStart()
Gets a human-readable representation of the start value, for a range result.
Returns:
getTimex
public String getTimex()
Gets the value in TIMEX format. The TIMEX format that follows the ISO 8601 standard.
Returns:
getValue
public String getValue()
Gets a human-readable representation of the value, for a non-range result.
Returns:
setEnd
public void setEnd(String end)
Sets a human-readable represntation of the end value, for a range result.
Parameters:
setStart
public void setStart(String start)
Sets a human-readable representation of the start value, for a range result.
Parameters:
setTimex
public void setTimex(String timex)
Sets the value in TIMEX format. The TIMEX format that follows the ISO 8601 standard.
Parameters:
setValue
public void setValue(String value)
Sets a human-readable representation of the value, for a non-range result.
Parameters: