groovy.text
Class XmlTemplateEngine
java.lang.Object
groovy.text.TemplateEngine
groovy.text.XmlTemplateEngine
public class XmlTemplateEngine
- extends TemplateEngine
Template engine for xml data input.
- Author:
- Christian Stein, Paul King
DEFAULT_INDENTATION
public static final String DEFAULT_INDENTATION
- See Also:
- Constant Field Values
XmlTemplateEngine
public XmlTemplateEngine()
throws SAXException,
ParserConfigurationException
- Throws:
SAXException
ParserConfigurationException
XmlTemplateEngine
public XmlTemplateEngine(String indentation,
boolean validating)
throws SAXException,
ParserConfigurationException
- Throws:
SAXException
ParserConfigurationException
XmlTemplateEngine
public XmlTemplateEngine(XmlParser xmlParser,
ClassLoader parentLoader)
XmlTemplateEngine
public XmlTemplateEngine(XmlParser xmlParser,
GroovyShell groovyShell)
createTemplate
public Template createTemplate(Reader reader)
throws CompilationFailedException,
ClassNotFoundException,
IOException
- Specified by:
createTemplate
in class TemplateEngine
- Throws:
CompilationFailedException
ClassNotFoundException
IOException
getIndentation
public String getIndentation()
setIndentation
public void setIndentation(String indentation)
toString
public String toString()
- Overrides:
toString
in class Object