目录

InsightIntent

Class Info

public class InsightIntent

Intent data to be shared, including the Intent name, Intent version number, data ID, action information, and entity information.

Public Constructor Summary

Constructor Name

InsightIntent(String name)

Constructs an InsightIntent instance.

Public Method Summary

Qualifier and Type

Method Name

String

getIntentName()

InsightIntent

setIntentName(String intentName)

String

getIntentVersion()

InsightIntent

setIntentVersion(String intentVersion)

String

getIdentifier()

InsightIntent

setIdentifier(String identifier)

JSONObject

getIntentActionInfo()

InsightIntent

setIntentActionInfo(JSONObject intentActionInfo)

JSONObject

getIntentEntityInfo()

InsightIntent

setIntentEntityInfo(JSONObject intentEntityInfo)

JSONObject

getCustomFormInfo()

InsightIntent

setCustomFormInfo(JSONObject customFormInfo)

JSONObject

getIntentTargetInfo()

InsightIntent

setIntentTargetInfo(JSONObject intentTargetInfo)

InsightIntent

addIntentInfo(String key, JSONObject intentInfo)

Public Constructors

[h2]InsightIntent(String name)

Constructor

public InsightIntent(String name)

Constructs an InsightIntent instance.

Parameters

Name

Description

name

Intent name.

Public Methods

getIntentName

Method

public String getIntentName()

Obtains the Intent name.

Returns

Type

Description

String

Intent name.

setIntentName

Method

public InsightIntent setIntentName(String intentName)

Sets the Intent name.

Parameters

Name

Description

intentName

Intent name.

Returns

Type

Description

InsightIntent

InsightIntent object.

getIntentVersion

Method

public String getIntentVersion()

Obtains the Intent version number.

Returns

Type

Description

String

Intent version number.

setIntentVersion

Method

public InsightIntent setIntentVersion(String intentVersion)

Sets the Intent version number.

Parameters

Name

Description

intentVersion

Intent version number.

Returns

Type

Description

InsightIntent

InsightIntent object.

getIdentifier

Method

public String getIdentifier()

Obtains the ID of the data under an Intent.

Returns

Type

Description

String

ID of the data under an Intent.

setIdentifier

Method

public InsightIntent setIdentifier(String identifier)

Sets the ID of the data under an Intent.

Parameters

Name

Description

identifier

ID of the data under an Intent.

Returns

Type

Description

InsightIntent

InsightIntent object.

getIntentActionInfo

Method

public JSONObject getIntentActionInfo()

Obtains the Intent action information.

Returns

Type

Description

JSONObject

Intent action information.

setIntentActionInfo

Method

public InsightIntent setIntentActionInfo(JSONObject intentActionInfo)

Sets the Intent action information.

Parameters

Name

Description

intentActionInfo

Intent action information.

Returns

Type

Description

InsightIntent

InsightIntent object.

getIntentEntityInfo

Method

public JSONObject getIntentEntityInfo()

Obtains the Intent entity information.

Returns

Type

Description

JSONObject

Intent entity information.

setIntentEntityInfo

Method

public InsightIntent setIntentEntityInfo(JSONObject intentEntityInfo)

Sets the Intent entity information.

Parameters

Name

Description

intentEntityInfo

Intent entity information.

Returns

Type

Description

InsightIntent

InsightIntent object.

getCustomFormInfo

Method

public JSONObject getCustomFormInfo()

Obtains the custom widget information of an Intent.

Returns

Type

Description

JSONObject

Custom widget information of an Intent.

setCustomFormInfo

Method

public InsightIntent setCustomFormInfo(JSONObject customFormInfo)

Sets the custom widget information of an Intent.

Parameters

Name

Description

customFormInfo

Custom widget information of an Intent.

Returns

Type

Description

InsightIntent

InsightIntent object.

getIntentTargetInfo

Method

public JSONObject getIntentTargetInfo()

Obtains the Intent target information.

Returns

Type

Description

JSONObject

Intent target information.

setIntentTargetInfo

Method

public InsightIntent setIntentTargetInfo(JSONObject intentTargetInfo)

Sets the Intent target information.

Parameters

Name

Description

intentTargetInfo

Intent target information.

Returns

Type

Description

InsightIntent

InsightIntent object.

addIntentInfo

Method

public InsightIntent addIntentInfo(String key, JSONObject intentInfo)

Adds a specified key and corresponding information to an intent.

Parameters

Name

Description

key

Key in the intent information.

intentInfo

Value in the intent information.

Returns

Type

Description

InsightIntent

InsightIntent object.