public final class CssTemplate extends TextTemplateDecorator
TextTemplate with CSS tags.decoratedDEFAULT_CONTENT_TYPE| Constructor and Description |
|---|
CssTemplate(TextTemplate textTemplate)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAfterTemplateContents()
Retrieves the
String to put after the actual template contents, for example: |
String |
getBeforeTemplateContents()
Retrieves the
String to put before the actual template contents, for example: |
String |
getString()
Retrieves the
String resource. |
TextTemplate |
interpolate(Map<String,?> variables)
This class decorates another
TextTemplate class and so does not allow
interpolation. |
asString, asString, close, equals, getContentType, getInputStream, getLocale, hashCode, lastModifiedTime, setCharset, setLastModified, setLocale, toStringgetCharset, lengthgetStyle, getVariation, setStyle, setVariationclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetStyle, getVariation, setStyle, setVariationpublic CssTemplate(TextTemplate textTemplate)
textTemplate - a TextTemplate to decoratepublic String getBeforeTemplateContents()
TextTemplateDecoratorString to put before the actual template contents, for example:
<script type="text/javascript">
getBeforeTemplateContents in class TextTemplateDecoratorString to put before the actual template contentsTextTemplateDecorator.getBeforeTemplateContents()public String getAfterTemplateContents()
TextTemplateDecoratorString to put after the actual template contents, for example:
</script>
getAfterTemplateContents in class TextTemplateDecoratorString to put after the actual template contentsTextTemplateDecorator.getAfterTemplateContents()public TextTemplate interpolate(Map<String,?> variables)
TextTemplate class and so does not allow
interpolation.interpolate in class TextTemplatevariables - ignoredthis, for chaining purposespublic String getString()
TextTemplateString resource.getString in class TextTemplateDecoratorString resourceTextTemplate.getString()Copyright © 2006–2021 Apache Software Foundation. All rights reserved.