DateTimeResolution Class

  • java.lang.Object
    • com.microsoft.bot.dialogs.prompts.DateTimeResolution

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

A human-readable representation of the end value, for a range result.

getStart

public String getStart()

Gets a human-readable representation of the start value, for a range result.

Returns:

A human-readable representation of the start value, for a range result.

getTimex

public String getTimex()

Gets the value in TIMEX format. The TIMEX format that follows the ISO 8601 standard.

Returns:

A TIMEX representation of the value.

getValue

public String getValue()

Gets a human-readable representation of the value, for a non-range result.

Returns:

A human-readable representation of the value, for a non-range result.

setEnd

public void setEnd(String end)

Sets a human-readable represntation of the end value, for a range result.

Parameters:

end - A human-readable representation of the end value, for a range result.

setStart

public void setStart(String start)

Sets a human-readable representation of the start value, for a range result.

Parameters:

start - A human-readable representation of the start value, for a range result.

setTimex

public void setTimex(String timex)

Sets the value in TIMEX format. The TIMEX format that follows the ISO 8601 standard.

Parameters:

timex - A TIMEX representation of the value.

setValue

public void setValue(String value)

Sets a human-readable representation of the value, for a non-range result.

Parameters:

value - A human-readable representation of the value, for a non-range result.

Applies to