org.slim3.commons.beanutil
Class BeanUtil

java.lang.Object
  extended by org.slim3.commons.beanutil.BeanUtil

public final class BeanUtil
extends Object

A utility class for bean.

Since:
3.0
Author:
higa

Method Summary
static Copy copy(Object src, Object dest)
          Creates a Copy instance.
static
<T> CreateAndCopy<T>
createAndCopy(Class<T> destClass, Object src)
          Creates a CreateAndCopy instance.
static BeanDesc getBeanDesc(Class<?> beanClass)
          Returns the bean descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getBeanDesc

public static BeanDesc getBeanDesc(Class<?> beanClass)
Returns the bean descriptor.

Parameters:
beanClass - the bean class
Returns:
the bean descriptor

copy

public static Copy copy(Object src,
                        Object dest)
Creates a Copy instance.

Parameters:
src - the source
dest - the destination
Returns:
a Copy instance

createAndCopy

public static <T> CreateAndCopy<T> createAndCopy(Class<T> destClass,
                                                 Object src)
Creates a CreateAndCopy instance.

Type Parameters:
T - the destination type
Parameters:
destClass - the destination class
src - the source
Returns:
a CreateAndCopy instance


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.