Interface IPromptQueryConfig_TextParameters
-
- All Known Implementing Classes:
GenericOaiQueryConfig
public interface IPromptQueryConfig_TextParametersMixin for aprompt query configuration modelthat allows the user to define a list text parameters accepted by the query. For each text parameter, the user can configure various settings, such as itsPromptTextParameter.getLabel()or whether it isrequired. Each text parameter also has akeythat identifies it.When you use this mixin, you should also implement
computeQueryInputin such a way that it set an appropriatevalue list descriptoras theJSON descriptorthat includestext parameters. For example, you could create arecord value descriptorwith a property for each text parameter. If you have done that, then upon execution, a JSON value matching that descriptor must be provided, or execution will fail. TheJSON valuepassed to theexecutemethod by the prompt engine will conform to the descriptor you provided.Use of this mixin is optional, but ensures a consistent name for the text parameters property. When different prompt service handlers use the same property name, switching between different prompt service handlers preserves the configured data.
See also the
<xp:textParameters/>Faces component from thehttp://www.xima.de/taglib/xfc/promptnamespace, which provides a user interface for editing the data defined by this mixin.- Since:
- 8.5.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_TEXT_PARAMETERSThe name of the prompt text parameters attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<PromptTextParameter>getTextParameters()Gets the list of text parameters accepted by the prompt query.voidsetTextParameters(List<PromptTextParameter> textParameters)Sets the list of text parameters accepted by the prompt query.
-
-
-
Field Detail
-
ATTR_TEXT_PARAMETERS
static final String ATTR_TEXT_PARAMETERS
The name of the prompt text parameters attribute. If you implement a custom serialization / deserialization, use this name for the attribute to increase compatibility with other prompt service handlers.- See Also:
- Constant Field Values
-
-
Method Detail
-
getTextParameters
List<PromptTextParameter> getTextParameters()
Gets the list of text parameters accepted by the prompt query.- Returns:
- The list of text parameters.
-
setTextParameters
void setTextParameters(List<PromptTextParameter> textParameters)
Sets the list of text parameters accepted by the prompt query.- Parameters:
textParameters- The list of text parameters to set.
-
-