Package org.exoplatform.groovyscript
Class GroovyTemplate
java.lang.Object
org.exoplatform.groovyscript.GroovyTemplate
- All Implemented Interfaces:
Externalizable,Serializable
A Groovy template.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGroovyTemplate(Reader scriptReader) GroovyTemplate(String templateText) GroovyTemplate(String id, String name, Reader scriptReader) GroovyTemplate(String templateId, String templateName, String templateText) -
Method Summary
-
Constructor Details
-
GroovyTemplate
public GroovyTemplate() -
GroovyTemplate
public GroovyTemplate(String id, String name, Reader scriptReader) throws IOException, TemplateCompilationException -
GroovyTemplate
-
GroovyTemplate
- Throws:
TemplateCompilationException
-
GroovyTemplate
public GroovyTemplate(String templateId, String templateName, String templateText) throws TemplateCompilationException - Throws:
TemplateCompilationException
-
-
Method Details
-
getId
-
getClassName
-
getText
-
getGroovy
-
render
- Throws:
IOExceptionTemplateRuntimeException
-
render
- Throws:
IOExceptionTemplateRuntimeException
-
render
public void render(Writer writer, Map binding, Locale locale) throws IOException, TemplateRuntimeException - Throws:
IOExceptionTemplateRuntimeException
-
render
- Throws:
IOExceptionTemplateRuntimeException
-
render
- Throws:
IOExceptionTemplateRuntimeException
-
render
- Throws:
IOExceptionTemplateRuntimeException
-
render
- Throws:
IOExceptionTemplateRuntimeException
-
render
- Throws:
IOExceptionTemplateRuntimeException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException- See Also:
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException- See Also:
-
equals
-
hashCode
public int hashCode()
-