public static interface

ArticleDetails.Field

com.salesforce.android.knowledge.core.model.ArticleDetails.Field

Class Overview

A ArticleDetails.Field is a piece of information inside an article. Fields can be entered when creating an article in Salesforce Knowledge.

Summary

Nested Classes
@interface ArticleDetails.Field.Type IntDef for the field types. 
Constants
int TYPE_LONG_TEXT_AREA The field contains content from a long text area.
int TYPE_RICH_TEXT The field contains content from a rich text editor.
int TYPE_TEXT The field contains plain-text content.
int TYPE_TEXT_AREA The field contains content from a text area.
int TYPE_UNKNOWN The field is any type not included in the other values.
Public Methods
abstract String getLabel()
The human-readable label for the field.
abstract String getName()
The API name for the field.
abstract int getType()
The type of content contained in this field.
abstract String getValue()
The value, or content, of a field.

Constants

public static final int TYPE_LONG_TEXT_AREA

The field contains content from a long text area.

Constant Value: 3 (0x00000003)

public static final int TYPE_RICH_TEXT

The field contains content from a rich text editor.

Constant Value: 4 (0x00000004)

public static final int TYPE_TEXT

The field contains plain-text content.

Constant Value: 1 (0x00000001)

public static final int TYPE_TEXT_AREA

The field contains content from a text area.

Constant Value: 2 (0x00000002)

public static final int TYPE_UNKNOWN

The field is any type not included in the other values.

Constant Value: 0 (0x00000000)

Public Methods

public abstract String getLabel ()

The human-readable label for the field.

Returns
  • The field label.

public abstract String getName ()

The API name for the field. Use getLabel() for a human readable label suitable for display to the end user.

Returns
  • The field's API name.

public abstract int getType ()

The type of content contained in this field.

Returns
  • The field type.

public abstract String getValue ()

The value, or content, of a field.

Returns
  • The field value.