类 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
-
字段详细资料
-
CAST_ERROR
- 另请参阅:
-
GLOBL_CACHED
-
-
构造器详细资料
-
UObjectValue
public UObjectValue()
-
-
方法详细资料
-
setRequestValue
Set the target class setRequestValue- 参数:
instance- The targetClassrv- the RequestValue- 返回:
- true: successful /false: fail
-
writeXmlNodeAtts
-
writeXmlNodeTexts
-
fromXml
-
fromXmlNodes
-
fromXml
-
setValue
-
convert
-
setAllValue
Set the corresponding parameters of the specified class through the attributes of the source element- 参数:
ele- the source element
-
getAllValue
-
getValue
-
getValue
-
getValueAccurate
-
getProperty
-
getPropertyMethod
-
setValue
-
setValueAccurate
-
getObject
- 返回:
- the specified class
-
setObject
Set the source class as specified class- 参数:
sourceClass- the source class
-
loadClass
-
loadClass
public boolean loadClass(String className, Object[] constructorParameters, String exeMethodName, Object[] methodValues, RequestValue rv) 通过反射的方法调用类- 参数:
className- 类名constructorParameters- 构造参数exeMethodName- 执行方法名methodValues- 执行参数rv- 页面 RequestValue 对象- 返回:
- 是否成功
-
loadClass
-
invokeStatic
-
invoke
-
invoke
-
setDaoValue
-
setDaoValue
-
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
-
setDaoValue
Set the specified class through the RequestValue- 参数:
rv- the RequestValue- 返回:
- the specified class
- 抛出:
Exception- The exception
-
getGetterMethods
-
getInstance
-
getLastErrMsg
-
getNotFinds
Get the not found methods of the setDaoValue- 返回:
- the _NotFinds
-