Class JustificationContainerV2

java.lang.Object
com.aquima.interactions.framework.container.justification.JustificationContainerV2
All Implemented Interfaces:
IContainerExpander

public class JustificationContainerV2 extends Object implements IContainerExpander
The justification container shows the justification messages for the attribute specified in the parameters, and optionally also for other attributes that were used during the inference action.
  • Constructor Details

    • JustificationContainerV2

      public JustificationContainerV2()
  • Method Details

    • expand

      public Container expand(Container container, ContainerDefinition definition, IContainerContext context) throws Exception
      Description copied from interface: IContainerExpander
      This method is invoked by the composer to allow a custom component to expand the container definition. The resulting container will not be post processed, and will be included as-is in the page.

      During an expand call the following rules apply.

      The profile is read-only

      The profile should only be used to retrieve information. Note: for older projects this can be changed by changing the application configuration, however this is highly discouraged.

      Specified by:
      expand in interface IContainerExpander
      Parameters:
      container - The container without any child elements.
      definition - The container definition containing the child definitions.
      context - the context for usage within the function.
      Returns:
      A container which is used for the render action, and is never allowed to be null
      Throws:
      Exception - When an exception occurred which was not recoverable by the container. It will be replaced by an error-container. This exception has no influence on flowing or other handling which is done by the page-composer.