|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container
The Container
object represents an interface to
the templating system used by the TemplateEngine
.
A container represents a logical database of information that
can be shared between controller objects and documents. It
is also used to acquire documents using a URI path structure.
Method Summary | |
---|---|
boolean |
exists(java.lang.String path)
Determines whether the named template exists. |
Document |
lookup(java.lang.String path)
Looks for the named template and wraps the template within a new Document instance. |
Methods inherited from interface simple.template.Database |
---|
contains, get, keySet, put, remove |
Method Detail |
---|
Document lookup(java.lang.String path) throws java.lang.Exception
Document
instance. Resolving the location
of the template is left up the templating system, typically
this requires a file path reference to locate the template.
The document created by this method is transient, that is, it is a unique instance. This means that changes to the properties of any created document object affect only that instance. All documents retrieved should use UTF-8 encoding.
path
- this is the path used to locate the template
java.lang.Exception
- this is thrown if the is a problem with
locating or rendering the specified templateboolean exists(java.lang.String path)
lookup
method will locate
a template given the specified path. If the template is
accessable this returns true, otherwise false is returned.
path
- this is the path used to locate the template
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |