org.sovt.xml
Class InspectorFactory

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

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

Factory of Inspector objects for digister.

Author:
Vilmantas Baranauskas (vilmantas_baranauskas@yahoo.com)

Field Summary
 
Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory
digester
 
Constructor Summary
InspectorFactory()
          Creates instence of InspectorFactory.
 
Method Summary
 java.lang.Object createObject(org.xml.sax.Attributes attributes)
          Creates Inspector 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

InspectorFactory

public InspectorFactory()
Creates instence of InspectorFactory.

Method Detail

createObject

public java.lang.Object createObject(org.xml.sax.Attributes attributes)
                              throws java.lang.ClassNotFoundException,
                                     java.lang.IllegalAccessException,
                                     java.lang.InstantiationException,
                                     java.lang.CloneNotSupportedException
Creates Inspector for given attributes. Inspector creation order is following:
  1. Named inspector is returned if "ref" attribute is present.
  2. Class instance is returned if "class" attribute is present.
  3. Instance of GroupInspector.

Parameters:
attributes - Attribute of xml inspector definition.
Returns:
instance of Inspector.
Throws:
java.lang.ClassNotFoundException - If unable to instantiate Inspector class.
java.lang.IllegalAccessException - If unable to instantiate Inspector class.
java.lang.InstantiationException - If unable to instantiate Inspector class.
java.lang.CloneNotSupportedException


Copyright © 2003-2005 . All Rights Reserved.