org.apache.maven.tools.plugin.javadoc
Class AbstractMojoTaglet

java.lang.Object
  extended by org.apache.maven.tools.plugin.javadoc.AbstractMojoTaglet
All Implemented Interfaces:
com.sun.tools.doclets.Taglet
Direct Known Subclasses:
AbstractMojoFieldTaglet, AbstractMojoTypeTaglet

public abstract class AbstractMojoTaglet
extends java.lang.Object
implements com.sun.tools.doclets.Taglet

Abstract Taglet for Maven Mojo annotations.
A Mojo annotation is defined like the following:

 @annotation <annotationValue> <parameterName="parameterValue">
 

Version:
$Id: AbstractMojoTaglet.java 684240 2008-08-09 12:15:40Z vsiveton $
Author:
Vincent Siveton
See Also:
package-summary.html

Constructor Summary
AbstractMojoTaglet()
           
 
Method Summary
abstract  java.lang.String[] getAllowedParameterNames()
           
abstract  java.lang.String getAllowedValue()
           
abstract  java.lang.String getHeader()
           
 boolean hasAnnotationParameters()
           
 boolean hasAnnotationValue()
           
 java.lang.String toString(com.sun.javadoc.Tag tag)
          
 java.lang.String toString(com.sun.javadoc.Tag[] tags)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.tools.doclets.Taglet
getName, inConstructor, inField, inMethod, inOverview, inPackage, inType, isInlineTag
 

Constructor Detail

AbstractMojoTaglet

public AbstractMojoTaglet()
Method Detail

toString

public java.lang.String toString(com.sun.javadoc.Tag tag)

Specified by:
toString in interface com.sun.tools.doclets.Taglet

toString

public java.lang.String toString(com.sun.javadoc.Tag[] tags)

Specified by:
toString in interface com.sun.tools.doclets.Taglet

getHeader

public abstract java.lang.String getHeader()
Returns:
the header, i.e. the message, to display

getAllowedValue

public abstract java.lang.String getAllowedValue()
Returns:
the given annotation value, or null if the given Mojo annotation/tag does't allow annotation value.
Note: the value could be a pattern value, i.e.: * for every values, a|b|c for a OR b OR c.

getAllowedParameterNames

public abstract java.lang.String[] getAllowedParameterNames()
Returns:
an array of the allowed parameter names for the given Mojo annotation/tag, or null if the annotation/tag doesn't allow parameter.

hasAnnotationValue

public boolean hasAnnotationValue()
Returns:
true if taglet has annotation value, false otherwise.
See Also:
getAllowedValue()

hasAnnotationParameters

public boolean hasAnnotationParameters()
Returns:
true if taglet has parameters, false otherwise.
See Also:
getAllowedParameterNames()


Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.