org.progeeks.util.xml
Class DefaultObjectHandler

java.lang.Object
  extended by org.progeeks.util.xml.AbstractObjectHandler
      extended by org.progeeks.util.xml.BeanObjectHandler
          extended by org.progeeks.util.xml.DefaultObjectHandler
All Implemented Interfaces:
ObjectHandler
Direct Known Subclasses:
ChartObjectHandler, GraphObjectHandler, StandardPredicateHandler

public class DefaultObjectHandler
extends BeanObjectHandler

Default implementation of the object handler interface that is geared to handling a specific set of objects. Most often, this class is extended when an object does not have a no-arg constructor, but would otherwise be treated as a bean. Subclasses should override the createObject() method in these cases.

Version:
$Revision: 1.2 $
Author:
Paul Speed

Field Summary
 
Fields inherited from class org.progeeks.util.xml.BeanObjectHandler
CONFIG_IMPORT_PACKAGE
 
Constructor Summary
DefaultObjectHandler()
           
 
Method Summary
 void addHandledClass(java.lang.Class c)
          Adds the specified class to the list of tags that are handled by this handler.
 boolean canHandle(java.lang.String tag)
          Returns true if this handler applies to the specified object tag.
 java.util.List getHandledClasses()
          Returns the list of classes that are handled by this handler.
 
Methods inherited from class org.progeeks.util.xml.BeanObjectHandler
createObject, getClass, getClass, getConstant, getInnerClass, getPackages, getProperty, getPropertyClass, getPropertyCollection, getTagClass, ignoreAttribute, importPackage, setConfigurationProperty, setObjectProperties, setPackages, setProperty, setTextProperty
 
Methods inherited from class org.progeeks.util.xml.AbstractObjectHandler
resolveObject, setContainedText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultObjectHandler

public DefaultObjectHandler()
Method Detail

addHandledClass

public void addHandledClass(java.lang.Class c)
Adds the specified class to the list of tags that are handled by this handler.


getHandledClasses

public java.util.List getHandledClasses()
Returns the list of classes that are handled by this handler.


canHandle

public boolean canHandle(java.lang.String tag)
Returns true if this handler applies to the specified object tag.

Specified by:
canHandle in interface ObjectHandler
Overrides:
canHandle in class BeanObjectHandler


Copyright © 2002-2003 Paul Speed. All Rights Reserved.