org.broadleafcommerce.core.web.processor
Class ImageProcessor

java.lang.Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.element.AbstractElementProcessor
          extended by org.broadleafcommerce.core.web.processor.ImageProcessor
All Implemented Interfaces:
Comparable<org.thymeleaf.processor.IProcessor>, org.thymeleaf.processor.IProcessor

@Component(value="blImageProcessor")
public class ImageProcessor
extends org.thymeleaf.processor.element.AbstractElementProcessor

Author:
Jerry Ocanas (jocanas)

Constructor Summary
ImageProcessor()
          Sets the name of this processor to be used in Thymeleaf template
 
Method Summary
 int getPrecedence()
           
protected  boolean isExpression(String subject)
           
protected  String parseImgName(String imgName)
           
protected  org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
           
 
Methods inherited from class org.thymeleaf.processor.element.AbstractElementProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageProcessor

public ImageProcessor()
Sets the name of this processor to be used in Thymeleaf template

Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class org.thymeleaf.processor.AbstractProcessor

processElement

protected org.thymeleaf.processor.ProcessorResult processElement(org.thymeleaf.Arguments arguments,
                                                                 org.thymeleaf.dom.Element element)
Specified by:
processElement in class org.thymeleaf.processor.element.AbstractElementProcessor

parseImgName

protected String parseImgName(String imgName)

isExpression

protected boolean isExpression(String subject)


Copyright © 2012. All Rights Reserved.