Package com.fizzed.rocker.runtime
Class DefaultRockerTemplate.Internal
- java.lang.Object
-
- com.fizzed.rocker.runtime.DefaultRockerTemplate.Internal
-
- Enclosing class:
- DefaultRockerTemplate
protected class DefaultRockerTemplate.Internal extends java.lang.ObjectInternal state of a template. Simple way to hide internal variables from template (which of course are subclasses of this class). This is an internal API and it may radically change over time. Using this for workaround, etc. is not recommended.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringcharsetprivate ContentTypecontentTypeprivate RockerOutputoutprivate booleanrenderedprivate intsourceLineprivate intsourcePosInLineprivate RockerStringifystringifyprivate java.lang.StringtemplateNameprivate java.lang.StringtemplatePackageName
-
Constructor Summary
Constructors Modifier Constructor Description privateInternal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaboutToExecutePosInTemplate(int line, int posInLine)java.lang.StringgetCharset()ContentTypegetContentType()RockerOutputgetOut()RockerStringifygetStringify()java.lang.StringgetTemplateName()java.lang.StringgetTemplatePackageName()booleanrenderValue(boolean v, boolean nullSafe)booleanrenderValue(byte v, boolean nullSafe)booleanrenderValue(char v, boolean nullSafe)booleanrenderValue(double v, boolean nullSafe)booleanrenderValue(float v, boolean nullSafe)booleanrenderValue(int v, boolean nullSafe)booleanrenderValue(long v, boolean nullSafe)booleanrenderValue(short v, boolean nullSafe)booleanrenderValue(BindableRockerModel model, boolean nullSafe)booleanrenderValue(RockerContent c, boolean nullSafe)booleanrenderValue(DefaultRockerModel model, boolean nullSafe)booleanrenderValue(Raw raw, boolean nullSafe)booleanrenderValue(java.lang.Object value, boolean nullSafe)booleanrenderValue(java.lang.String value, boolean nullSafe)voidsetCharset(java.lang.String charset)voidsetContentType(ContentType contentType)voidsetContentType(ContentType contentType, RockerStringify stringify)voidsetOut(RockerOutput out)voidsetStringify(RockerStringify stringify)voidsetTemplateName(java.lang.String templateName)voidsetTemplatePackageName(java.lang.String templatePackageName)voidthrowBreakException()voidthrowContinueException()protected voidverifyOkToBeginRendering()voidwriteValue(byte[] bytes)voidwriteValue(java.lang.String s)
-
-
-
Field Detail
-
charset
private java.lang.String charset
-
contentType
private ContentType contentType
-
stringify
private RockerStringify stringify
-
out
private RockerOutput out
-
rendered
private boolean rendered
-
sourceLine
private int sourceLine
-
sourcePosInLine
private int sourcePosInLine
-
templateName
private java.lang.String templateName
-
templatePackageName
private java.lang.String templatePackageName
-
-
Method Detail
-
getTemplateName
public java.lang.String getTemplateName()
-
setTemplateName
public void setTemplateName(java.lang.String templateName)
-
getTemplatePackageName
public java.lang.String getTemplatePackageName()
-
setTemplatePackageName
public void setTemplatePackageName(java.lang.String templatePackageName)
-
getCharset
public java.lang.String getCharset()
-
setCharset
public void setCharset(java.lang.String charset)
-
aboutToExecutePosInTemplate
public void aboutToExecutePosInTemplate(int line, int posInLine)
-
getContentType
public ContentType getContentType()
-
setContentType
public void setContentType(ContentType contentType)
-
setContentType
public void setContentType(ContentType contentType, RockerStringify stringify)
-
getStringify
public RockerStringify getStringify()
-
setStringify
public void setStringify(RockerStringify stringify)
-
getOut
public RockerOutput getOut()
-
setOut
public void setOut(RockerOutput out)
-
verifyOkToBeginRendering
protected void verifyOkToBeginRendering()
-
throwBreakException
public void throwBreakException() throws BreakException- Throws:
BreakException
-
throwContinueException
public void throwContinueException() throws ContinueException- Throws:
ContinueException
-
writeValue
public void writeValue(java.lang.String s) throws java.io.IOException- Throws:
java.io.IOException
-
writeValue
public void writeValue(byte[] bytes) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(RockerContent c, boolean nullSafe) throws RenderingException, java.io.IOException
- Throws:
RenderingExceptionjava.io.IOException
-
renderValue
public boolean renderValue(DefaultRockerModel model, boolean nullSafe) throws RenderingException, java.io.IOException
- Throws:
RenderingExceptionjava.io.IOException
-
renderValue
public boolean renderValue(BindableRockerModel model, boolean nullSafe) throws RenderingException, java.io.IOException
- Throws:
RenderingExceptionjava.io.IOException
-
renderValue
public boolean renderValue(Raw raw, boolean nullSafe) throws RenderingException, java.io.IOException
- Throws:
RenderingExceptionjava.io.IOException
-
renderValue
public boolean renderValue(java.lang.String value, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(java.lang.Object value, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(byte v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(short v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(int v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(long v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(float v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(double v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(char v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
renderValue
public boolean renderValue(boolean v, boolean nullSafe) throws java.io.IOException- Throws:
java.io.IOException
-
-