org.beanfabrics.support
Class SupportUtil

java.lang.Object
  extended by org.beanfabrics.support.SupportUtil

public class SupportUtil
extends java.lang.Object

Author:
Michael Karneim

Constructor Summary
SupportUtil()
           
 
Method Summary
static java.lang.String format(java.lang.reflect.Field field)
           
static java.lang.String format(java.lang.reflect.Method method)
           
static java.util.List<java.lang.reflect.Field> sortFields(java.util.List<java.lang.reflect.Field> fields)
          Sorts the given List of Fields according to their declaring Class and the value of the optional defined SortOrder annotation.
static java.util.List<java.lang.reflect.Member> sortMembers(java.util.List<java.lang.reflect.Member> members)
          Sorts the given List of Members according to their declaring Class and the value of the optional defined SortOrder annotation.
static java.util.List<java.lang.reflect.Method> sortMethods(java.util.List<java.lang.reflect.Method> methods)
          Sorts the given List of Methods according to their declaring Class and the value of the optional defined SortOrder annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportUtil

public SupportUtil()
Method Detail

sortMethods

public static java.util.List<java.lang.reflect.Method> sortMethods(java.util.List<java.lang.reflect.Method> methods)
Sorts the given List of Methods according to their declaring Class and the value of the optional defined SortOrder annotation.

Parameters:
methods - the methods to sort
Returns:
the sorted list

sortFields

public static java.util.List<java.lang.reflect.Field> sortFields(java.util.List<java.lang.reflect.Field> fields)
Sorts the given List of Fields according to their declaring Class and the value of the optional defined SortOrder annotation.

Parameters:
fields - the fields to sort
Returns:
the sorted list

sortMembers

public static java.util.List<java.lang.reflect.Member> sortMembers(java.util.List<java.lang.reflect.Member> members)
Sorts the given List of Members according to their declaring Class and the value of the optional defined SortOrder annotation.

Parameters:
members - the members to sort
Returns:
the sorted list

format

public static java.lang.String format(java.lang.reflect.Method method)

format

public static java.lang.String format(java.lang.reflect.Field field)


© 2010 by Michael Karneim, http://www.beanfabrics.org