Class DefaultRockerTemplate.Internal

  • Enclosing class:
    DefaultRockerTemplate

    protected class DefaultRockerTemplate.Internal
    extends java.lang.Object
    Internal 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 Detail

      • charset

        private java.lang.String charset
      • rendered

        private boolean rendered
      • sourceLine

        private int sourceLine
      • sourcePosInLine

        private int sourcePosInLine
      • templateName

        private java.lang.String templateName
      • templatePackageName

        private java.lang.String templatePackageName
    • Constructor Detail

      • Internal

        private Internal()
    • 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)
      • setContentType

        public void setContentType​(ContentType contentType)
      • verifyOkToBeginRendering

        protected void verifyOkToBeginRendering()
      • 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​(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