KnowledgeBaseWorkIQReference Class

public final class KnowledgeBaseWorkIQReference
extends KnowledgeBaseReference

Represents a WorkIQ document reference.

Method Summary

Modifier and Type Method and Description
static KnowledgeBaseWorkIQReference fromJson(JsonReader jsonReader)

Reads an instance of KnowledgeBaseWorkIQReference from the JsonReader.

List<WorkIQAttribution> getAttributions()

Get the attributions property: The attributions for the reference.

KnowledgeBaseReferenceType getType()

Get the type property: The type of the reference.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from KnowledgeBaseReference

Methods inherited from java.lang.Object

Method Details

fromJson

public static KnowledgeBaseWorkIQReference fromJson(JsonReader jsonReader)

Reads an instance of KnowledgeBaseWorkIQReference from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of KnowledgeBaseWorkIQReference if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getAttributions

public List<WorkIQAttribution> getAttributions()

Get the attributions property: The attributions for the reference.

Returns:

the attributions value.

getType

public KnowledgeBaseReferenceType getType()

Get the type property: The type of the reference.

Overrides:

KnowledgeBaseWorkIQReference.getType()

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

KnowledgeBaseWorkIQReference.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to