xdoclet.modules.java.javabean

Class 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

UNKNOWN: June 20, 2002 namespace = "JavaBean"

Method Summary
StringbeanClass(Properties attributes)
return configured bean class name or current class name
StringcapitalizeClassTag(Properties attributes)
Capitalize the first letter of a class tag (i.e countToken => CountToken)
static StringgetBeanInfoClassFor(XClass clazz)
StringgetGetterMethodNameQuoted()
Get the getter method for the current method
StringgetPropertyNameQuoted()
Get the property name for the current method xxx rlo the is fucked
StringgetSetterMethodNameQuoted()
Get the setter method for the current method
StringgetterPrefix(Properties attributes)
Return the getter prefix according to the class tag that contains a class.

Method Detail

beanClass

public String beanClass(Properties attributes)
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 String capitalizeClassTag(Properties attributes)
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

getBeanInfoClassFor

public static String getBeanInfoClassFor(XClass clazz)

getGetterMethodNameQuoted

public String getGetterMethodNameQuoted()
Get the getter method for the current method

Returns:

getPropertyNameQuoted

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

Returns:

getSetterMethodNameQuoted

public String getSetterMethodNameQuoted()
Get the setter method for the current method

Returns:

getterPrefix

public String getterPrefix(Properties attributes)
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