|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openxava.util.Objects
public class Objects
Utility class to work with objects.
| Constructor Summary | |
|---|---|
Objects()
Deprecated. |
|
| Method Summary | |
|---|---|
static java.lang.Object |
clone(java.lang.Object o)
Deprecated. Clone the sent object. |
static java.lang.Object |
deepClone(java.lang.Object source)
Deprecated. Does an deep clone of the sent object. |
static java.lang.Object |
execute(java.lang.Class theClass,
java.lang.String methodName)
Deprecated. Allows to execute dinamically (as in SmallTalk) an static method of an class. |
static java.lang.Object |
execute(java.lang.Class theClass,
java.lang.String methodName,
java.lang.Class argumentClass,
java.lang.Object arg)
Deprecated. Allows to execute dinamically (as in SmallTalk) an static method of an class. |
static java.lang.Object |
execute(java.lang.Class theClass,
java.lang.String methodName,
java.lang.Class argumentClass1,
java.lang.Object arg1,
java.lang.Class argumentClass2,
java.lang.Object arg2)
Deprecated. Allows to execute dinamically (as in SmallTalk) an static method of an class. |
static java.lang.Object |
execute(java.lang.Object o,
java.lang.String methodName)
Deprecated. Allows to execute dinamically (as in SmallTalk) an method of an object. |
static java.lang.Object |
execute(java.lang.Object o,
java.lang.String methodName,
java.lang.Class argumentClass,
java.lang.Object arg)
Deprecated. Allows to execute dinamically (as in SmallTalk) an method of an object. |
static java.lang.Object |
execute(java.lang.Object o,
java.lang.String methodName,
java.lang.Class argumentClass1,
java.lang.Object arg1,
java.lang.Class argumentClass2,
java.lang.Object arg2)
Deprecated. Allows to execute dinamically (as in SmallTalk) an method of an object. |
static java.lang.Object |
tryClone(java.lang.Object o)
Deprecated. Try to clone the sent object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Objects()
| Method Detail |
|---|
public static java.lang.Object clone(java.lang.Object o)
throws java.lang.CloneNotSupportedException
The clone is done using the method
clone() of the
sent object if this implements Cloneable
java.lang.CloneNotSupportedException - If the object is not Cloneable.
public static java.lang.Object deepClone(java.lang.Object source)
throws CloneException
If the argument is null, then returns null.
source - Must be serializable. It's not necessary that it implements Cloneable.
CloneException - Any problem on cloning.
public static java.lang.Object execute(java.lang.Object o,
java.lang.String methodName)
throws java.lang.Exception
o - Object where the method will be executed. It cannot be null.methodName - Name of the method to execute.
java.lang.Exception - Any problem, including exceptions from target method.
java.lang.NoSuchMethodException - If the method does not exist in target object.
public static java.lang.Object execute(java.lang.Object o,
java.lang.String methodName,
java.lang.Class argumentClass,
java.lang.Object arg)
throws java.lang.Exception
o - Object where the method will be executed. It cannot be null.methodName - Name of the method to execute.argumentClass - Not null.arg - Argument value. It can be null.
java.lang.Exception - Any problem, including exceptions from target method.
java.lang.NoSuchMethodException - If the method does not exist in target object.
public static java.lang.Object execute(java.lang.Object o,
java.lang.String methodName,
java.lang.Class argumentClass1,
java.lang.Object arg1,
java.lang.Class argumentClass2,
java.lang.Object arg2)
throws java.lang.Exception
o - Object where the method will be executed. It cannot be null.methodName - Name of the method to execute.argumentClass1 - Not null.arg1 - Argument value. It can be null.argumentClass2 - Not null.arg2 - Argument value. It can be null.
java.lang.Exception - Any problem, including exceptions from target method.
java.lang.NoSuchMethodException - If the method does not exist in target object.
public static java.lang.Object execute(java.lang.Class theClass,
java.lang.String methodName,
java.lang.Class argumentClass1,
java.lang.Object arg1,
java.lang.Class argumentClass2,
java.lang.Object arg2)
throws java.lang.Exception
theClass - The class where the method will be executed. It cannot be null.methodName - Name of the method to execute.argumentClass1 - Not null.arg1 - Argument value. It can be null.argumentClass2 - Not null.arg2 - Argument value. It can be null. *
java.lang.Exception - Any problem, including exceptions from target method.
java.lang.NoSuchMethodException - If the method does not exist in target class.
public static java.lang.Object execute(java.lang.Class theClass,
java.lang.String methodName,
java.lang.Class argumentClass,
java.lang.Object arg)
throws java.lang.Exception
theClass - The class where the method will be executed. It cannot be null.methodName - Name of the method to execute.argumentClass - Not null.arg - Argument value. It can be null.
java.lang.Exception - Any problem, including exceptions from target method.
java.lang.NoSuchMethodException - If the method does not exist in target class.
public static java.lang.Object execute(java.lang.Class theClass,
java.lang.String methodName)
throws java.lang.Exception
theClass - The class where the method will be executed. It cannot be null.methodName - Name of the method to execute.
java.lang.Exception - Any problem, including exceptions from target method.
java.lang.NoSuchMethodException - If the method does not exist in target class.public static java.lang.Object tryClone(java.lang.Object o)
If it does not win it, then return the original element.
The clone is done using the method clone() of the
sent object, if it implements Cloneable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||