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)
           
protected  void checkNotInitialized()
           
 void clearPatterns()
           
 java.util.Set<String> getPatterns()
           
 void initialize()
           
protected  boolean isInitialized()
           
 boolean matches(String templateName)
           
 void setPatterns(java.util.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

isInitialized

protected final boolean isInitialized()

initialize

public final void initialize()

checkNotInitialized

protected final void checkNotInitialized()

getPatterns

public final java.util.Set<String> getPatterns()

setPatterns

public final void setPatterns(java.util.Set<String> newPatterns)

addPattern

public final void addPattern(String pattern)

clearPatterns

public final void clearPatterns()

matches

public boolean matches(String templateName)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.