com.bea.tuxedo.control
Class Accessors
java.lang.Object
com.bea.tuxedo.control.Accessors
public class Accessors
- extends Object
Class providing utility functions to parse field accessor names.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Accessors
public Accessors()
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.