com.googlecode.lightest.core
Class LightestTransformer

java.lang.Object
  extended by com.googlecode.lightest.core.CustomizedTransformer
      extended by com.googlecode.lightest.core.LightestTransformer
All Implemented Interfaces:
groovy.lang.GroovyObject

public class LightestTransformer
extends CustomizedTransformer
implements groovy.lang.GroovyObject

The Lightest customizations to the TestNG XSLT report transforms.


Field Summary
protected  groovy.xml.DOMBuilder builder
           
static String SVG_NS
           
static String XSL_NS
           
 
Fields inherited from class com.googlecode.lightest.core.CustomizedTransformer
DEFAULT_TRANSFORMER_FACTORY, transformer
 
Constructor Summary
LightestTransformer()
           
 
Method Summary
 void customize(Document doc)
          Customizes the XSL transform XML.
protected  List eval(String xpathExpr, Object context)
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 InputStream getTransformAsStream()
          Returns the XSL transform source as an InputStream.
 Object invokeMethod(String name, Object args)
           
static void main(Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class com.googlecode.lightest.core.CustomizedTransformer
setParameter, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSL_NS

public static final String XSL_NS

SVG_NS

public static final String SVG_NS

builder

protected groovy.xml.DOMBuilder builder
Constructor Detail

LightestTransformer

public LightestTransformer()
Method Detail

getTransformAsStream

public InputStream getTransformAsStream()
Description copied from class: CustomizedTransformer
Returns the XSL transform source as an InputStream.

Specified by:
getTransformAsStream in class CustomizedTransformer

eval

protected List eval(String xpathExpr,
                    Object context)

customize

public void customize(Document doc)
Description copied from class: CustomizedTransformer
Customizes the XSL transform XML. This will be invoked before the transform is applied to the source document.

Specified by:
customize in class CustomizedTransformer
Parameters:
doc - the document object of the XSLT document.

main

public static void main(Object args)

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class CustomizedTransformer

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class CustomizedTransformer

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class CustomizedTransformer

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class CustomizedTransformer

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class CustomizedTransformer


Copyright © 2009. All Rights Reserved.