Share via


TextContentVariableContextVariableTypeConverter Class

public class TextContentVariableContextVariableTypeConverter
extends ContextVariableTypeConverter<TextContent>

A converter for a context variable type. This class is used to convert objects to and from a prompt string, and to convert objects to the type of the context variable.

Constructor Summary

Constructor Description
TextContentVariableContextVariableTypeConverter()

Initializes a new instance of the TextContentVariableContextVariableTypeConverter class.

Method Summary

Modifier and Type Method and Description
static java.lang.String escapeXmlStringValue(TextContent value)

Escapes the XML string value.

Methods inherited from ContextVariableTypeConverter

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TextContentVariableContextVariableTypeConverter

public TextContentVariableContextVariableTypeConverter()

Initializes a new instance of the TextContentVariableContextVariableTypeConverter class.

Method Details

escapeXmlStringValue

public static String escapeXmlStringValue(TextContent value)

Escapes the XML string value.

Parameters:

value - The value containing the content to escape.

Returns:

The escaped XML string value.

Applies to