org.thymeleaf
Class PatternSpec

Object
  extended by org.thymeleaf.PatternSpec

public final class PatternSpec
extends Object

Utility class of internal use for holding the patterns that certain artifacts (usually template names) must match for obtaining some consideration. For example, it is used at many ITemplateResolver implementations for holding the patterns that match a template to a specific template mode.

Since:
1.0
Author:
Daniel Fernández

Constructor Summary
PatternSpec()
           
 
Method Summary
 void addPattern(String pattern)
           
 void clearPatterns()
           
 Set<String> getPatterns()
           
 void initialize()
           
 boolean matches(String templateName)
           
 void setPatterns(Set<String> newPatterns)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternSpec

public PatternSpec()
Method Detail

initialize

public void initialize()

getPatterns

public Set<String> getPatterns()

setPatterns

public void setPatterns(Set<String> newPatterns)

addPattern

public void addPattern(String pattern)

clearPatterns

public void clearPatterns()

matches

public boolean matches(String templateName)


Copyright © 2013 The THYMELEAF team. All Rights Reserved.