Class DefaultTagFactory

java.lang.Object
org.apache.commons.jelly.impl.DefaultTagFactory
All Implemented Interfaces:
TagFactory

public class DefaultTagFactory extends Object implements TagFactory

DefaultTagFactory a default implementation of TagFactory which creates new instances of a given class.

Version:
$Revision: 155420 $
Author:
James Strachan
  • Constructor Details

    • DefaultTagFactory

      public DefaultTagFactory()
    • DefaultTagFactory

      public DefaultTagFactory(Class tagClass)
  • Method Details

    • createTag

      public Tag createTag(String name, Attributes attributes) throws JellyException
      Description copied from interface: TagFactory
      Creates a Tag for the given local name and the SAX attributes
      Specified by:
      createTag in interface TagFactory
      Throws:
      JellyException
    • getTagClass

      public Class getTagClass()
      Returns the tagClass.
      Returns:
      Class
    • setTagClass

      public void setTagClass(Class tagClass)
      Sets the tagClass.
      Parameters:
      tagClass - The tagClass to set