ModelResult<T> Class
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. ModelResult<T>
- com.
Type Parameters
- T
The type of object recognized.
public class ModelResult<T>
Contains recognition result information.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| ModelResult() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| int |
getEnd()
Gets the end character position of the recognized substring. |
| T |
getResolution()
Gets the recognized object. |
| int |
getStart()
Gets the start character position of the recognized substring. |
| java.lang.String |
getText()
Gets the substring of the input that was recognized. |
| java.lang.String |
getTypeName()
Gets the type of entity that was recognized. |
| void |
setEnd(int withEnd)
Starts the end character position of the recognized substring. |
| void |
setResolution(T withResolution)
Sets the recognized object. |
| void |
setStart(int withStart)
Sets the start character position of the recognized substring. |
| void |
setText(String withText)
Sets the substring of the input that was recognized. |
| void |
setTypeName(String withTypeName)
Sets the type of entity that was recognized. |
Methods inherited from java.lang.Object
Constructor Details
ModelResult
public ModelResult()
Method Details
getEnd
public int getEnd()
Gets the end character position of the recognized substring.
Returns:
getResolution
public T getResolution()
Gets the recognized object.
Returns:
getStart
public int getStart()
Gets the start character position of the recognized substring.
Returns:
getText
public String getText()
Gets the substring of the input that was recognized.
Returns:
getTypeName
public String getTypeName()
Gets the type of entity that was recognized.
Returns:
setEnd
public void setEnd(int withEnd)
Starts the end character position of the recognized substring.
Parameters:
setResolution
public void setResolution(T withResolution)
Sets the recognized object.
Parameters:
setStart
public void setStart(int withStart)
Sets the start character position of the recognized substring.
Parameters:
setText
public void setText(String withText)
Sets the substring of the input that was recognized.
Parameters:
setTypeName
public void setTypeName(String withTypeName)
Sets the type of entity that was recognized.
Parameters: