public class Focus extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Focus.Lens |
| Constructor and Description |
|---|
Focus() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId() |
double |
getConfidence() |
int |
getEnd() |
int |
getFocusVersion() |
Focus.Lens |
getLens() |
String |
getLensId() |
String |
getPhrase() |
int |
getStart() |
boolean |
isHidden() |
void |
setApplicationId(String applicationId) |
void |
setConfidence(double confidence) |
void |
setEnd(int end) |
void |
setFocusVersion(int focusVersion) |
void |
setHidden(boolean hidden) |
void |
setLens(Focus.Lens lens) |
void |
setLensId(String lensId) |
void |
setPhrase(String phrase) |
void |
setStart(int start) |
public Focus.Lens getLens()
public void setLens(Focus.Lens lens)
lens - Lens this focus was generated bypublic int getStart()
public void setStart(int start)
start - int start index within the text passed for the phrase identifiedpublic int getEnd()
public void setEnd(int end)
end - int end index within the text passed for the phrase identifiedpublic String getPhrase()
public void setPhrase(String phrase)
phrase - String phrase extracted from the text passed by the lenspublic double getConfidence()
public void setConfidence(double confidence)
confidence - double confidence percentage Watson Workspace had in identifying the lens, between 0 and 1public String getApplicationId()
public void setApplicationId(String applicationId)
applicationId - String id of the application with which the lens is associatedpublic String getLensId()
public void setLensId(String lensId)
lensId - String auto-generated id of the Watson Conversation instancepublic int getFocusVersion()
public void setFocusVersion(int focusVersion)
focusVersion - int version of the Focus objectpublic boolean isHidden()
public void setHidden(boolean hidden)
hidden - boolean whether or not the lens is hidden, seems to be false always in API responseCopyright © 2018 OpenNTF. All rights reserved.