UTF-X, Unit Testing Framework - Xslt

utfx.framework
Class SourceParserFactory

java.lang.Object
  extended by utfx.framework.SourceParserFactory

public class SourceParserFactory
extends java.lang.Object

This class uses reflection to load a Source Parser class.

Copyright © 2004 - University of Southern Queensland.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

$Source: /cvs/utf-x/framework/src/java/utfx/framework/SourceParserFactory.java,v $

Version:
$Revision: 1.1 $ $Date: 2005/03/23 02:25:13 $ $Name: release_0_0_8_alpha $
Author:
Jacek Radajewski

Field Summary
private  java.lang.String className
           
private  org.apache.log4j.Logger log
          LOG4J logging facility
private  java.lang.Object[] parameters
           
private  java.lang.Class[] parameterTypes
           
private  javax.xml.xpath.XPath xpath
          XPath
private  javax.xml.xpath.XPathFactory xpf
          XPath factory
 
Constructor Summary
SourceParserFactory()
           
 
Method Summary
 SourceParser getSourceParser(org.w3c.dom.Element elem)
           
private  java.lang.Object load()
          Load a source builder class.
private  void parse(org.w3c.dom.Element elem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameters

private java.lang.Object[] parameters

parameterTypes

private java.lang.Class[] parameterTypes

log

private org.apache.log4j.Logger log
LOG4J logging facility


className

private java.lang.String className

xpf

private javax.xml.xpath.XPathFactory xpf
XPath factory


xpath

private javax.xml.xpath.XPath xpath
XPath

Constructor Detail

SourceParserFactory

public SourceParserFactory()
Method Detail

load

private java.lang.Object load()
                       throws java.lang.ClassNotFoundException,
                              java.lang.SecurityException,
                              java.lang.NoSuchMethodException,
                              java.lang.reflect.InvocationTargetException,
                              java.lang.InstantiationException,
                              java.lang.IllegalAccessException,
                              java.lang.reflect.InvocationTargetException
Load a source builder class.

Parameters:
node -
Returns:
Throws:
java.lang.NoSuchMethodException
java.lang.SecurityException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
java.lang.ClassNotFoundException

getSourceParser

public SourceParser getSourceParser(org.w3c.dom.Element elem)
                             throws java.lang.ClassNotFoundException,
                                    java.lang.NoSuchMethodException,
                                    java.lang.NoSuchMethodException,
                                    java.lang.IllegalAccessException,
                                    java.lang.reflect.InvocationTargetException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException,
                                    javax.xml.xpath.XPathExpressionException
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
javax.xml.xpath.XPathExpressionException

parse

private void parse(org.w3c.dom.Element elem)
            throws java.lang.ClassNotFoundException,
                   java.lang.NoSuchMethodException,
                   java.lang.NoSuchMethodException,
                   java.lang.reflect.InvocationTargetException,
                   java.lang.InstantiationException,
                   java.lang.IllegalAccessException,
                   java.lang.reflect.InvocationTargetException,
                   javax.xml.xpath.XPathExpressionException
Parameters:
elem -
Throws:
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.reflect.InvocationTargetException
javax.xml.xpath.XPathExpressionException

UTF-X, Unit Testing Framework - Xslt