类 UObjectValue
java.lang.Object
com.gdxsoft.easyweb.utils.UObjectValue
Reflect the class by name
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static ObjectConvert to target objectstatic voidSet the corresponding parameters of the target class through the attributes of the source elementstatic voidSet the corresponding parameters of the target class through the children text content of the source elementstatic voidfromXmlNodes(Element parentElement, Object targetClass) Set the corresponding parameters of the target class through the children text content of the source elementGet the specified class all get methods value,String, boolean, int...Returns all get methodsGet the loadClass instnaceGet the last exception messageGet the not found methods of the setDaoValuegetProperty(String methodName) Get the value based on the method name without "get/is"getPropertyMethod(String methodName) 获取属性对应的方法Return the get method resultGet the value based on LIKE the get-method namegetValueAccurate(String methodName) Get the value based on the get-method name通过类实例执行方法通过类实例执行方法invokeStatic(String className, String methodName, Object[] methodValues) Invoke the static method通过反射加载类booleanloadClass(String className, Object[] constructorParameters, String exeMethodName, Object[] methodValues) 通过反射的方法调用类booleanloadClass(String className, Object[] constructorParameters, String exeMethodName, Object[] methodValues, RequestValue rv) 通过反射的方法调用类voidsetAllValue(Element ele) Set the corresponding parameters of the specified class through the attributes of the source elementsetDaoValue(DTRow row) Set the specified class through the DTRowSet the specified class through the RequestValuesetDaoValue(ResultSet rs, String[] fieldList) Set the specified class through the JDBC result and the specified field listsetDaoValue(org.json.JSONObject json) /** Set the specified class through the JSON objectsetDaoValue(org.json.JSONObject obj, IHandleJsonBinary handleJsonBinary) Set the specified class through the JSON objectvoidSet the source class as specified classstatic booleansetRequestValue(Object instance, RequestValue rv) Set the target class setRequestValuestatic StringSet the target class parameter base on the methodSet the specified class parameter base on LIKE the method namesetValueAccurate(String methodName, String val) Set the specified class parameter base on the method namestatic voidwriteXmlNodeAtts(Element targetElement, Object source) Set the corresponding attributes of the target element through the get methods of the source classstatic voidwriteXmlNodeTexts(Element targetElement, Object source) Create the corresponding child text nodes of the target element through the get methods of the source class
-
字段详细资料
-
GLOBL_CACHED
-
-
构造器详细资料
-
UObjectValue
public UObjectValue()
-
-
方法详细资料
-
setRequestValue
Set the target class setRequestValue- 参数:
instance- The targetClassrv- the RequestValue- 返回:
- true: successful /false: fail
-
writeXmlNodeAtts
Set the corresponding attributes of the target element through the get methods of the source class- 参数:
targetElement- The target elementsource- the source class
-
writeXmlNodeTexts
Create the corresponding child text nodes of the target element through the get methods of the source class- 参数:
targetElement- The target elementsource- The source class
-
fromXml
Set the corresponding parameters of the target class through the children text content of the source element- 参数:
parentNode- the source nodetargetClass- the target class
-
fromXmlNodes
Set the corresponding parameters of the target class through the children text content of the source element- 参数:
parentElement- the source elementtargetClass- the target class
-
fromXml
Set the corresponding parameters of the target class through the attributes of the source element- 参数:
ele- the source elementtargetClass- the target class
-
setValue
Set the target class parameter base on the method- 参数:
instance- target classmethod- the methodpara- the set value- 返回:
- the result, when null is successful else is the error message
-
convert
Convert to target object- 参数:
t- the target object classsrc- the source object- 返回:
- the converted object
-
setAllValue
Set the corresponding parameters of the specified class through the attributes of the source element- 参数:
ele- the source element
-
getAllValue
Get the specified class all get methods value,String, boolean, int...- 返回:
- the all get methods value
-
getValue
Return the get method result- 参数:
method- the get method- 返回:
- the return value
-
getValue
Get the value based on LIKE the get-method name- 参数:
methodName- the get-method name- 返回:
- the get-method returns value
-
getValueAccurate
Get the value based on the get-method name- 参数:
methodName- the get-method name- 返回:
- the get-method returns value
-
getProperty
Get the value based on the method name without "get/is"- 参数:
methodName- the method name without "get/is"- 返回:
- the get method returns value
-
getPropertyMethod
获取属性对应的方法- 参数:
methodName-- 返回:
-
setValue
Set the specified class parameter base on LIKE the method name- 参数:
methodName- the method nameval- the set value- 返回:
- the result, when null is successful else is the error message
-
setValueAccurate
Set the specified class parameter base on the method name- 参数:
methodName- the method nameval- the set value- 返回:
- the result, when null is successful else is the error message
-
getObject
- 返回:
- the specified class
-
setObject
Set the source class as specified class- 参数:
sourceClass- the source class
-
loadClass
public boolean loadClass(String className, Object[] constructorParameters, String exeMethodName, Object[] methodValues) 通过反射的方法调用类- 参数:
className- 类名constructorParameters- 构造参数exeMethodName- 执行方法名methodValues- 执行参数- 返回:
- 是否成功
-
loadClass
public boolean loadClass(String className, Object[] constructorParameters, String exeMethodName, Object[] methodValues, RequestValue rv) 通过反射的方法调用类- 参数:
className- 类名constructorParameters- 构造参数exeMethodName- 执行方法名methodValues- 执行参数rv- 页面 RequestValue 对象- 返回:
- 是否成功
-
loadClass
通过反射加载类- 参数:
className- 类名constructorParameters- 构造参数值- 返回:
- 类实例
-
invokeStatic
public Object invokeStatic(String className, String methodName, Object[] methodValues) throws Exception Invoke the static method- 参数:
className- the class namemethodName- the static method namemethodValues- the method parameters- 返回:
- the result
- 抛出:
Exception- error
-
invoke
通过类实例执行方法- 参数:
instance- 类实例exeMethodName- 执行方法名methodValues- 执行参数- 返回:
- 执行后对象
-
invoke
public Object invoke(Object instance, Method[] methods, String exeMethodName, Object[] methodValues) 通过类实例执行方法- 参数:
instance- 类实例methods- 方法数组exeMethodName- 执行方法名methodValues- 执行参数- 返回:
- 执行后对象
-
setDaoValue
Set the specified class through the JDBC result and the specified field list- 参数:
rs- the JDBC resultfieldList- the specified field list- 返回:
- the specified class
- 抛出:
Exception- The exception
-
setDaoValue
/** Set the specified class through the JSON object- 参数:
json- the JSON object- 返回:
- the specified class
- 抛出:
Exception- The exception
-
setDaoValue
public Object setDaoValue(org.json.JSONObject obj, IHandleJsonBinary handleJsonBinary) throws Exception Set the specified class through the JSON object- 参数:
obj- the JSON objecthandleJsonBinary- The interface of the JSON binary- 返回:
- the specified class
- 抛出:
Exception- The exception
-
setDaoValue
Set the specified class through the DTRow- 参数:
row- the DTRow- 返回:
- the specified class
- 抛出:
Exception- The exception
-
setDaoValue
Set the specified class through the RequestValue- 参数:
rv- the RequestValue- 返回:
- the specified class
- 抛出:
Exception- The exception
-
getGetterMethods
Returns all get methods- 返回:
- the _getterMethods
-
getInstance
Get the loadClass instnace- 返回:
- the _Instance
-
getLastErrMsg
Get the last exception message- 返回:
- the _LastErrMsg
-
getNotFinds
Get the not found methods of the setDaoValue- 返回:
- the _NotFinds
-