ariba.util.fieldvalue
Class FieldValueAccessorUtil

java.lang.Object
  extended by ariba.util.fieldvalue.FieldValueAccessorUtil

public class FieldValueAccessorUtil
extends java.lang.Object

Several static methods which are used in various places within the FieldValue subsystem to handle certain reflection operations more gracefully.


Constructor Summary
FieldValueAccessorUtil()
           
 
Method Summary
static boolean matchForGetter(java.lang.String targetFieldName, java.lang.String methodName)
          Determines if the methodName can be used given the targetFieldName.
static boolean matchForSetter(java.lang.String targetFieldName, java.lang.String methodName)
          Determines if the methodName can be used given the targetFieldName.
static java.lang.String normalizedFieldPathForMember(java.lang.reflect.Member element)
          Determines the generic field path for the member.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldValueAccessorUtil

public FieldValueAccessorUtil()
Method Detail

matchForSetter

public static boolean matchForSetter(java.lang.String targetFieldName,
                                     java.lang.String methodName)
Determines if the methodName can be used given the targetFieldName. The 'set' prefix is applied and the first letter of targetFieldName is capitalized.

Parameters:
targetFieldName - the desired field name
methodName - the actual method name
Returns:
wheter or not the two match according to the rules for matching setters

matchForGetter

public static boolean matchForGetter(java.lang.String targetFieldName,
                                     java.lang.String methodName)
Determines if the methodName can be used given the targetFieldName. First, an excat match is attempted, then the 'get' prefix is applied and the first letter of targetFieldName is capitalized.

Parameters:
targetFieldName - the desired field name
methodName - the actual method name
Returns:
wheter or not the two match according to the rules for matching getters

normalizedFieldPathForMember

public static java.lang.String normalizedFieldPathForMember(java.lang.reflect.Member element)
Determines the generic field path for the member.

Parameters:
element - the class element can be a field or method
Returns:
String


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.