Class AiCodeBlockLoader

All Implemented Interfaces:
ComponentLoader<AiCodeBlock>

public class AiCodeBlockLoader extends AbstractComponentLoader<AiCodeBlock>
Loads AiCodeBlock from a view descriptor.
  • Field Details

  • Constructor Details

    • AiCodeBlockLoader

      public AiCodeBlockLoader()
  • Method Details

    • createComponent

      protected AiCodeBlock createComponent()
      Specified by:
      createComponent in class AbstractComponentLoader<AiCodeBlock>
    • loadComponent

      public void loadComponent()
      Description copied from interface: ComponentLoader
      Loads component properties by XML definition.
    • loadCode

      protected void loadCode()
      Loads the code from the nested code element, or, when it is absent, from the code attribute. Unlike markdown, an absent value is not an error: an empty block the controller fills is the normal case. A present but blank element is an error: loading it as "" would silently shadow the attribute.
    • loadI18n

      protected void loadI18n()
      Applies the labels declared in the nested i18n element on top of the localization the component resolved from the message bundle when it was created.
    • getAiComponentLoaderSupport

      protected AiComponentLoaderSupport getAiComponentLoaderSupport()