org.sovt.xml
Class InspectorFactory
java.lang.Object
org.apache.commons.digester.AbstractObjectCreationFactory
org.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)
| Fields inherited from class org.apache.commons.digester.AbstractObjectCreationFactory |
digester |
|
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 |
InspectorFactory
public InspectorFactory()
- Creates instence of InspectorFactory.
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:
- Named inspector is returned if "ref" attribute is present.
- Class instance is returned if "class" attribute is present.
- 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.