Package org.apache.commons.jelly.impl
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 Summary
Constructors Constructor Description DefaultTagFactory()
DefaultTagFactory(Class tagClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tag
createTag(String name, Attributes attributes)
Creates a Tag for the given local name and the SAX attributesClass
getTagClass()
Returns the tagClass.void
setTagClass(Class tagClass)
Sets the tagClass.
-
-
-
Constructor Detail
-
DefaultTagFactory
public DefaultTagFactory()
-
DefaultTagFactory
public DefaultTagFactory(Class tagClass)
-
-
Method Detail
-
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 interfaceTagFactory
- 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
-
-