org.sovt.xml
Class TransformerFactory

java.lang.Object
  extended byorg.apache.commons.digester.AbstractObjectCreationFactory
      extended byorg.sovt.xml.TransformerFactory
All Implemented Interfaces:
org.apache.commons.digester.ObjectCreationFactory

public class TransformerFactory
extends org.apache.commons.digester.AbstractObjectCreationFactory

Factory of Transformer objects for digister.

Author:
Vilmantas Baranauskas (vilmantas_baranauskas@yahoo.com)

Field Summary
 
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
digester
 
Constructor Summary
TransformerFactory()
          Creates instence of TransformerFactory.
 
Method Summary
 java.lang.Object createObject(org.xml.sax.Attributes attributes)
          Creates Transformer for given attributes.
 
Methods inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
getDigester, setDigester
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformerFactory

public TransformerFactory()
Creates instence of TransformerFactory.

Method Detail

createObject

public java.lang.Object createObject(org.xml.sax.Attributes attributes)
                              throws java.lang.Exception
Creates Transformer for given attributes. Transformer creation order is following:
  1. Named transforer is returned if "ref" attribute is present.
  2. Class instance is returned if "class" attribute is present.
  3. Instance of GroupTransformer.

Parameters:
attributes - Attribute of xml transformer definition.
Returns:
instance of Transformer.
Throws:
java.lang.Exception - If unable to instantiate Transformer class.


Copyright © 2003-2005 . All Rights Reserved.