com.octagroup.foregej.java.tools
Class BeansUtil

java.lang.Object
  |
  +--com.octagroup.foregej.java.tools.BeansUtil

public class BeansUtil
extends java.lang.Object

Class that contains functionality associated with the beans specification.


Constructor Summary
BeansUtil()
           
 
Method Summary
static AST_METHOD_DEF getter2Setter(AST_METHOD_DEF getter)
          Performs a deep copy of the getter and converts it to a setter.
static java.lang.String property2Method(java.lang.String property)
          Converts a property name to a method name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeansUtil

public BeansUtil()
Method Detail

getter2Setter

public static AST_METHOD_DEF getter2Setter(AST_METHOD_DEF getter)
Performs a deep copy of the getter and converts it to a setter.

Since we perform a deep copy the body of the getter will also be copied.

Parameters:
getter -  
Returns:
 

property2Method

public static java.lang.String property2Method(java.lang.String property)
Converts a property name to a method name.

Usually this involves converting the first character to upper case.



Copyright © 2003 El Icognito des Noboby. All Rights Reserved.