photospace.beans
Class Beans

java.lang.Object
  extended byphotospace.beans.Beans

public class Beans
extends java.lang.Object


Constructor Summary
Beans()
           
 
Method Summary
static void copy(java.lang.Object from, java.lang.Object to)
          Shallow copies properties from one object to another
static java.util.Collection getProperties(java.lang.Object obj)
           
static void merge(java.lang.Object from, java.lang.Object to)
          Shallow copies properties from one object to another, only setting those values that are null or ""
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Beans

public Beans()
Method Detail

merge

public static void merge(java.lang.Object from,
                         java.lang.Object to)
Shallow copies properties from one object to another, only setting those values that are null or ""

Parameters:
from -
to -

copy

public static void copy(java.lang.Object from,
                        java.lang.Object to)
Shallow copies properties from one object to another

Parameters:
from -
to -

getProperties

public static java.util.Collection getProperties(java.lang.Object obj)