net.sf.javadocbuilder
Class JavaHelper

java.lang.Object
  |
  +--net.sf.javadocbuilder.JavaHelper

public final class JavaHelper
extends java.lang.Object

A class to simplify writing java code in velocity templates.

Author:
mgriffa

Constructor Summary
JavaHelper()
           
 
Method Summary
static java.lang.String beanProperiesMethodDeclaration(com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
          Gets a String with the list of parameter type and names.
static java.lang.String beanPropertiesMethodCall(com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
          Gets a String with the list of parameter names.
static java.lang.String getObjectName(java.lang.String className)
          Returns the same String with the first block of upper characters in lower characters.
static java.lang.String recursiveBeanPropertiesMethodCall(java.lang.String packageName, com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
          Gets a String recursive (as long as package matches the packageName) list of parameter names.
static java.lang.String recursiveBeanPropertiesMethodDeclaration(java.lang.String packageName, com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
          Gets a String recursive (as long as package matches the packageName) list of parameter names.
static java.lang.String recursiveBeanPropertiesSetters(java.lang.String packageName, com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
          Gets a String recursive (as long as package matches the packageName) list of parameter names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaHelper

public JavaHelper()
Method Detail

beanPropertiesMethodCall

public static java.lang.String beanPropertiesMethodCall(com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
Gets a String with the list of parameter names. This method is intended to be used to call a function that expects a paramter for each type.

Parameters:
beanProperties -
Returns:

beanProperiesMethodDeclaration

public static java.lang.String beanProperiesMethodDeclaration(com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
Gets a String with the list of parameter type and names. This method is intended to be used to declare a function that expects a paramter for each type.

Parameters:
beanProperties -
Returns:

recursiveBeanPropertiesMethodCall

public static java.lang.String recursiveBeanPropertiesMethodCall(java.lang.String packageName,
                                                                 com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
Gets a String recursive (as long as package matches the packageName) list of parameter names. This method is intended to be used to call a function that expects a paramter for each type.

Parameters:
beanProperties -
Returns:

recursiveBeanPropertiesMethodDeclaration

public static java.lang.String recursiveBeanPropertiesMethodDeclaration(java.lang.String packageName,
                                                                        com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
Gets a String recursive (as long as package matches the packageName) list of parameter names. This method is intended to be used to declare a function that expects a parameter for each type.

Parameters:
beanProperties -
Returns:

getObjectName

public static java.lang.String getObjectName(java.lang.String className)
Returns the same String with the first block of upper characters in lower characters. for Class it will return class.
for THISObjectName it will return thisobjectName

Parameters:
className -
Returns:

recursiveBeanPropertiesSetters

public static java.lang.String recursiveBeanPropertiesSetters(java.lang.String packageName,
                                                              com.thoughtworks.qdox.model.BeanProperty[] beanProperties)
Gets a String recursive (as long as package matches the packageName) list of parameter names. This method is intended to be used to declare a function that expects a parameter for each type.

Parameters:
beanProperties -
Returns: