org.thymeleaf.processor
Class ProcessorMatchingContext

Object
  extended by org.thymeleaf.processor.ProcessorMatchingContext

public final class ProcessorMatchingContext
extends Object

Models the context in which a node is matched.

These objects are only applied when the node is an Element. This is needed because a processor's applicability specifies an element or attribute name, but dialects might be configured with any prefix, and this will affect matching capabilities because final names will be composed of both prefix and name.

Matching contexts help matchers know the circumstances in which a node is trying to match, specifically the prefix being applied to the dialect.

Since:
2.0.0
Author:
Daniel Fernández

Constructor Summary
ProcessorMatchingContext(IDialect dialect, String dialectPrefix)
           
 
Method Summary
 boolean equals(Object obj)
           
 IDialect getDialect()
           
 String getDialectPrefix()
           
 int hashCode()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessorMatchingContext

public ProcessorMatchingContext(IDialect dialect,
                                String dialectPrefix)
Method Detail

getDialect

public IDialect getDialect()

getDialectPrefix

public String getDialectPrefix()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2012 The THYMELEAF team. All Rights Reserved.