org.compass.core.accessor
Class AccessorUtils

java.lang.Object
  extended by org.compass.core.accessor.AccessorUtils

public class AccessorUtils
extends Object

Author:
kimchy

Constructor Summary
AccessorUtils()
           
 
Method Summary
static Class getCollectionParameter(Getter getter)
          Returns the Java 5 generics collection parameter.
static Class getMapKeyParameter(Getter getter)
          Returns the Java 5 generics collection parameter.
static Class getMapValueParameter(Getter getter)
          Returns the Java 5 generics collection parameter.
static boolean isMapValueParameterArray(Getter getter)
           
static boolean isMapValueParameterCollection(Getter getter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessorUtils

public AccessorUtils()
Method Detail

getCollectionParameter

public static Class getCollectionParameter(Getter getter)
Returns the Java 5 generics collection parameter. Returns null if working with Java 1.4 or the collection has no generics parameter.


getMapKeyParameter

public static Class getMapKeyParameter(Getter getter)
Returns the Java 5 generics collection parameter. Returns null if working with Java 1.4 or the collection has no generics parameter.


isMapValueParameterArray

public static boolean isMapValueParameterArray(Getter getter)

isMapValueParameterCollection

public static boolean isMapValueParameterCollection(Getter getter)

getMapValueParameter

public static Class getMapValueParameter(Getter getter)
Returns the Java 5 generics collection parameter. If it is an array, returns the component of the array (use isMapValueParameterArray(Getter) in order to know if it was an array).



Copyright (c) 2004-2009 The Compass Project.