Class UnknownComponentWarnProcessor

java.lang.Object
org.thymeleaf.processor.AbstractProcessor
io.vertigo.ui.impl.thymeleaf.components.UnknownComponentWarnProcessor
All Implemented Interfaces:
org.thymeleaf.processor.element.IElementProcessor, org.thymeleaf.processor.element.IElementTagProcessor, org.thymeleaf.processor.IProcessor

public final class UnknownComponentWarnProcessor extends org.thymeleaf.processor.AbstractProcessor implements org.thymeleaf.processor.element.IElementTagProcessor
Dev mode only : logs a vu: element without component, written as is and ignored by the browser (a component removed or renamed, a typo). Once by template and element : the processors run at each rendering.
Author:
npiedeloup
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnknownComponentWarnProcessor(String dialectPrefix, Set<String> componentNames)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.thymeleaf.processor.element.MatchingAttributeName
     
    org.thymeleaf.processor.element.MatchingElementName
     
    void
    process(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler)
     

    Methods inherited from class org.thymeleaf.processor.AbstractProcessor

    getPrecedence, getTemplateMode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.thymeleaf.processor.IProcessor

    getPrecedence, getTemplateMode
  • Constructor Details

    • UnknownComponentWarnProcessor

      public UnknownComponentWarnProcessor(String dialectPrefix, Set<String> componentNames)
      Parameters:
      dialectPrefix - Dialect prefix (vu)
      componentNames - Names of the elements of the dialect (components, content, slot...)
  • Method Details

    • getMatchingElementName

      public org.thymeleaf.processor.element.MatchingElementName getMatchingElementName()
      Specified by:
      getMatchingElementName in interface org.thymeleaf.processor.element.IElementProcessor
    • getMatchingAttributeName

      public org.thymeleaf.processor.element.MatchingAttributeName getMatchingAttributeName()
      Specified by:
      getMatchingAttributeName in interface org.thymeleaf.processor.element.IElementProcessor
    • process

      public void process(org.thymeleaf.context.ITemplateContext context, org.thymeleaf.model.IProcessableElementTag tag, org.thymeleaf.processor.element.IElementTagStructureHandler structureHandler)
      Specified by:
      process in interface org.thymeleaf.processor.element.IElementTagProcessor