com.bea.tuxedo.control
Class Accessors

java.lang.Object
  extended by com.bea.tuxedo.control.Accessors

public class Accessors
extends Object

Class providing utility functions to parse field accessor names.


Constructor Summary
Accessors()
           
 
Method Summary
static String getterNameToField(String methodName, TuxedoControl.AccessorName conventions)
          See if a name has the form of a JavaBean style getter.
static String setterNameToField(String methodName, TuxedoControl.AccessorName conventions)
          See if a name has the form of a JavaBean style setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Accessors

public Accessors()
Method Detail

getterNameToField

public static String getterNameToField(String methodName,
                                       TuxedoControl.AccessorName conventions)
See if a name has the form of a JavaBean style getter. If it does, return a string representing the associated field name, else return null.

Parameters:
methodName - The name to be checked and converted.
conventions - The conventions used to translate getters to field names.
Returns:
A string representing the field name, or null if the methodName does not follow the design pattern for a getter.

setterNameToField

public static String setterNameToField(String methodName,
                                       TuxedoControl.AccessorName conventions)
See if a name has the form of a JavaBean style setter. If it does, return a string representing the associated field name, else return null.

Parameters:
methodName - The name to be checked and converted.
conventions - The conventions used to translate setters to field names.
Returns:
A string representing the field name, or null if the methodName does not follow the design pattern for a setter.