|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.resource.AbstractResourceStream
wicket.util.resource.AbstractStringResourceStream
wicket.extensions.util.resource.TextTemplate
Represents a text template that can do variable interpolation.
| Constructor Summary | |
TextTemplate()
Construct. |
|
TextTemplate(java.lang.String contentType)
Construct. |
|
| Method Summary | |
java.lang.String |
asString()
|
java.lang.String |
asString(java.util.Map variables)
Interpolate the map of variables with the content and return the resulting string without replacing the content. |
abstract java.lang.String |
getString()
Gets the string resource. |
abstract TextTemplate |
interpolate(java.util.Map variables)
Interpolates values into this text template. |
| Methods inherited from class wicket.util.resource.AbstractStringResourceStream |
close, getContentType, getInputStream, lastModifiedTime, setLastModified |
| Methods inherited from class wicket.util.resource.AbstractResourceStream |
getCharset, getLocale, setCharset, setLocale |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface wicket.util.resource.IResourceStream |
length |
| Constructor Detail |
public TextTemplate()
public TextTemplate(java.lang.String contentType)
contentType - The mime type of this resource, such as "image/jpeg" or
"text/html".| Method Detail |
public java.lang.String asString(java.util.Map variables)
variables - The variables to interpolate
public java.lang.String asString()
AbstractResourceStream.asString()public abstract java.lang.String getString()
public abstract TextTemplate interpolate(java.util.Map variables)
variables - Variables to interpolate into this text template
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||