Token Class
- java.
lang. Object - com.
microsoft. bot. dialogs. choices. Token
- com.
public class Token
Represents an individual token, such as a word in an input string.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Token() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
appendText(String withText)
Appends a string to the text value. |
| int |
getEnd()
Gets the index of the last character of the token within the input. |
| java.lang.String |
getNormalized()
Gets the normalized version of the token. |
| int |
getStart()
Gets the index of the first character of the token within the input. |
| java.lang.String |
getText()
Gets the original text of the token. |
| void |
setEnd(int withEnd)
Starts the index of the last character of the token within the input. |
| void |
setNormalized(String withNormalized)
Sets the normalized version of the token. |
| void |
setStart(int withStart)
Sets the index of the first character of the token within the input. |
| void |
setText(String withText)
Sets the original text of the token. |
Methods inherited from java.lang.Object
Constructor Details
Token
public Token()
Method Details
appendText
public void appendText(String withText)
Appends a string to the text value.
Parameters:
getEnd
public int getEnd()
Gets the index of the last character of the token within the input.
Returns:
getNormalized
public String getNormalized()
Gets the normalized version of the token.
Returns:
getStart
public int getStart()
Gets the index of the first character of the token within the input.
Returns:
getText
public String getText()
Gets the original text of the token.
Returns:
setEnd
public void setEnd(int withEnd)
Starts the index of the last character of the token within the input.
Parameters:
setNormalized
public void setNormalized(String withNormalized)
Sets the normalized version of the token.
Parameters:
setStart
public void setStart(int withStart)
Sets the index of the first character of the token within the input.
Parameters:
setText
public void setText(String withText)
Sets the original text of the token.
Parameters: