Class TagFactory

java.lang.Object
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 Details

    • 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 String getDefaultTagType()
      Returns the default tag type if one is not specified.
      Returns:
      the default tag type string