org.jproggy.snippetory
Class Repo.TemplateContext

java.lang.Object
  extended by org.jproggy.snippetory.TemplateContext
      extended by org.jproggy.snippetory.Repo.TemplateContext
All Implemented Interfaces:
Cloneable
Enclosing class:
Repo

public static class Repo.TemplateContext
extends TemplateContext

Repo uses a special TemplateContext that replaces the functionality of configuring a UrlResolver by the ability to keep the data provided during initialization.


Method Summary
 Repo.TemplateContext attrib(String name, String value)
           
 Repo.TemplateContext encoding(Encoding encoding)
           
 Repo.TemplateContext encoding(String encoding)
           
 Repo.TemplateContext locale(Locale locale)
           
 Template parse()
           
 void setUriResolver(UriResolver urlResolver)
          Deprecated. Configuring the resolver is not allowed within Repo.
 Repo.TemplateContext syntax(Syntax syntax)
           
 Repo.TemplateContext syntax(SyntaxID syntax)
           
 
Methods inherited from class org.jproggy.snippetory.TemplateContext
clone, getBaseAttribs, getLocale, getSyntax, getTemplate, getUriResolver, setBaseAttribs, setLocale, setSyntax, uriResolver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

locale

public Repo.TemplateContext locale(Locale locale)
Overrides:
locale in class TemplateContext

attrib

public Repo.TemplateContext attrib(String name,
                                   String value)
Overrides:
attrib in class TemplateContext

encoding

public Repo.TemplateContext encoding(Encoding encoding)
Overrides:
encoding in class TemplateContext

encoding

public Repo.TemplateContext encoding(String encoding)
Overrides:
encoding in class TemplateContext

syntax

public Repo.TemplateContext syntax(Syntax syntax)
Overrides:
syntax in class TemplateContext

syntax

public Repo.TemplateContext syntax(SyntaxID syntax)
Overrides:
syntax in class TemplateContext

setUriResolver

@Deprecated
public void setUriResolver(UriResolver urlResolver)
Deprecated. Configuring the resolver is not allowed within Repo.

Overrides:
setUriResolver in class TemplateContext

parse

public Template parse()