xdoclet.modules.java.javabean
Class JavaBeanTagsHandler

java.lang.Object
  extended by xdoclet.template.TemplateTagHandler
      extended by xdoclet.XDocletTagSupport
          extended by xdoclet.modules.java.javabean.JavaBeanTagsHandler

public class JavaBeanTagsHandler
extends XDocletTagSupport

Specific tags handler to make the template easy.

Version:
$Revision: 1.5 $
Author:
Laurent Etiemble (letiemble@users.sourceforge.net), Ryan Ovrevik
xdoclet.taghandler
namespace = "JavaBean"
created
June 20, 2002

Field Summary
 
Fields inherited from class xdoclet.XDocletTagSupport
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
 
Constructor Summary
JavaBeanTagsHandler()
           
 
Method Summary
 java.lang.String beanClass(java.util.Properties attributes)
          return configured bean class name or current class name
 java.lang.String capitalizeClassTag(java.util.Properties attributes)
          Capitalize the first letter of a class tag (i.e countToken => CountToken)
static java.lang.String getBeanInfoClassFor(xjavadoc.XClass clazz)
           
 java.lang.String getGetterMethodNameQuoted()
          Get the getter method for the current method
 java.lang.String getPropertyNameQuoted()
          Get the property name for the current method xxx rlo the is fucked
 java.lang.String getSetterMethodNameQuoted()
          Get the setter method for the current method
 java.lang.String getterPrefix(java.util.Properties attributes)
          Return the getter prefix according to the class tag that contains a class.
 
Methods inherited from class xdoclet.XDocletTagSupport
delimit, expandClassName, generate, getCurrentClass, getCurrentClassTag, getCurrentConstructor, getCurrentField, getCurrentFieldTag, getCurrentMethod, getCurrentMethodTag, getCurrentPackage, getDocletContext, getEngine, getExpandedDelimitedTagValue, getTagValue, getTagValue, getTagValue, hasHavingClassTag, hasTag, isTagValueEqual, mandatoryParamNotFound, mandatoryTemplateTagParamNotFound, modifiers, popCurrentClass, pushCurrentClass, setCurrentClass, setCurrentClassTag, setCurrentConstructor, setCurrentField, setCurrentFieldTag, setCurrentMethod, setCurrentMethodTag, setCurrentPackage
 
Methods inherited from class xdoclet.template.TemplateTagHandler
getXJavaDoc, setXJavaDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBeanTagsHandler

public JavaBeanTagsHandler()
Method Detail

getBeanInfoClassFor

public static java.lang.String getBeanInfoClassFor(xjavadoc.XClass clazz)
                                            throws XDocletException
Throws:
XDocletException

getterPrefix

public java.lang.String getterPrefix(java.util.Properties attributes)
                              throws XDocletException
Return the getter prefix according to the class tag that contains a class.

Parameters:
attributes - XDoclet attributes
Returns:
The getter prefix
Throws:
XDocletException - Thrown in case of problem

getGetterMethodNameQuoted

public java.lang.String getGetterMethodNameQuoted()
Get the getter method for the current method

Returns:

getSetterMethodNameQuoted

public java.lang.String getSetterMethodNameQuoted()
Get the setter method for the current method

Returns:

getPropertyNameQuoted

public java.lang.String getPropertyNameQuoted()
Get the property name for the current method xxx rlo the is fucked

Returns:

beanClass

public java.lang.String beanClass(java.util.Properties attributes)
                           throws XDocletException
return configured bean class name or current class name

Parameters:
attributes - XDoclet attributes
Returns:
The getter prefix
Throws:
XDocletException - Thrown in case of problem

capitalizeClassTag

public java.lang.String capitalizeClassTag(java.util.Properties attributes)
                                    throws XDocletException
Capitalize the first letter of a class tag (i.e countToken => CountToken)

Parameters:
attributes - XDoclet attributes
Returns:
The class tag capitalized
Throws:
XDocletException - Thrown in case of problem

http://xdoclet.sourceforge.net/