org.codehaus.mojo.taglist.tags
Class TagFactory

java.lang.Object
  extended by org.codehaus.mojo.taglist.tags.TagFactory

public class TagFactory
extends Object

The tag factory is used to create a tag based on the type of tag defined in the pom.xml.


Method Summary
static AbsTag createTag(String tagType, String rule)
          Create a tag based on a tag type string.
static String getDefaultTagType()
          Returns the default tag type if one is not specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createTag

public static AbsTag createTag(String tagType,
                               String rule)
                        throws InvalidTagException
Create a tag based on a tag type string.

Parameters:
tagType - the XML string for the tag to create.
rule - the tag string to use in matching tags.
Returns:
the new tag. NULL if the tagType is unknown.
Throws:
InvalidTagException - if the tagType is unknown

getDefaultTagType

public static final String getDefaultTagType()
Returns the default tag type if one is not specified.

Returns:
the default tag type string


Copyright © 2005-2012 Codehaus. All Rights Reserved.