org.inria.ns.reflex.xml.translet
Class AbstractTemplateTemplates

java.lang.Object
  extended by org.inria.ns.reflex.xml.translet.AbstractTemplateTemplates
All Implemented Interfaces:
Templates
Direct Known Subclasses:
TemplateTemplates

public class AbstractTemplateTemplates
extends Object
implements Templates

A Templates that wraps a Translet.

The Compile class can be used to generate Templates subclasses beside a specific Translet. Unlike Translets, the generated Templates can be used direclty to perform an XSLT transformation.

Author:
Philippe Poulard
See Also:
Compile

Constructor Summary
AbstractTemplateTemplates(Class translet)
          Create a new templates based on a translet class.
AbstractTemplateTemplates(String className)
          Create a new templates based on a translet class name.
 
Method Summary
 Properties getOutputProperties()
          Get the output properties.
 Transformer newTransformer()
          Create a transformer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTemplateTemplates

public AbstractTemplateTemplates(String className)
Create a new templates based on a translet class name.

Parameters:
translet - The translet class name.
See Also:
Translet

AbstractTemplateTemplates

public AbstractTemplateTemplates(Class translet)
Create a new templates based on a translet class.

Parameters:
translet - The translet class.
See Also:
Translet
Method Detail

getOutputProperties

public Properties getOutputProperties()
Get the output properties.

Specified by:
getOutputProperties in interface Templates
See Also:
Templates.getOutputProperties()

newTransformer

public Transformer newTransformer()
                           throws TransformerConfigurationException
Create a transformer.

Specified by:
newTransformer in interface Templates
Throws:
TransformerConfigurationException
See Also:
Templates.newTransformer()