DataCategoryGroupSobjectTypePair Class

Specifies a category group and an associated object.

Namespace

Schema

Usage

Schema.DataCategoryGroupSobjectTypePair is used by the describeDataCategory GroupStructures method to return the categories available to this object.

DataCategoryGroupSobjectTypePair Constructors

The following are constructors for DataCategoryGroupSobjectTypePair.

DataCategoryGroupSobjectTypePair()

Creates a new instance of the Schema.DataCategoryGroupSobjectTypePair class.

Signature

public DataCategoryGroupSobjectTypePair()

DataCategoryGroupSobjectTypePair Methods

The following are methods for DataCategoryGroupSobjectTypePair. All are instance methods.

getDataCategoryGroupName()

Returns the unique name used by the API to access the data category group.

Signature

public String getDataCategoryGroupName()

Return Value

Type: String

getSobject()

Returns the object name associated with the data category group.

Signature

public String getSobject()

Return Value

Type: String

setDataCategoryGroupName(name)

Specifies the unique name used by the API to access the data category group.

Signature

public String setDataCategoryGroupName(String name)

Parameters

name
Type: String

Return Value

Type: Void

setSobject(sObjectName)

Sets the sObject associated with the data category group.

Signature

public Void setSobject(String sObjectName)

Parameters

sObjectName
Type: String
The sObjectName is the object name associated with the data category group. Valid values are:
  • KnowledgeArticleVersion—for article types.
  • Question—for questions from Answers.

Return Value

Type: Void