juju.reattore.util
Class Toolbox

java.lang.Object
  |
  +--juju.reattore.util.Toolbox

public class Toolbox
extends java.lang.Object

Toolbox of methods for use from Velocity.


Constructor Summary
Toolbox()
           
 
Method Summary
 MapOfLists createMapOfLists()
          Create a new MapOfLists
 java.lang.String getPropertyName(java.lang.String name)
          Turn a method name into a Bean property name.
 java.lang.String getShortClassName(java.lang.String name)
          Turn a fully qualified class name into the base name.
 boolean isSetter(java.lang.String name)
          Check if the named method is a Bean setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Toolbox

public Toolbox()
Method Detail

createMapOfLists

public MapOfLists createMapOfLists()
Create a new MapOfLists

Returns:
The new object.

isSetter

public boolean isSetter(java.lang.String name)
Check if the named method is a Bean setter.

Parameters:
name - Method name to check.
Returns:
true if it is a setter.

getPropertyName

public java.lang.String getPropertyName(java.lang.String name)
Turn a method name into a Bean property name.

Parameters:
name - Method name
Returns:
The property name

getShortClassName

public java.lang.String getShortClassName(java.lang.String name)
Turn a fully qualified class name into the base name.

Parameters:
name - The name to convert
Returns:
The short name.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.