类 XMLUtil
- java.lang.Object
-
- org.sagacity.sqltoy.utils.XMLUtil
-
public class XMLUtil extends Object
- 版本:
- v1.0,Date:2009-4-27
- 作者:
- zhongxuchen
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static ObjectconvertType(String value, String lowCaseTypeName)static ObjectreadXML(Object xmlFile, String charset, boolean isValidator, XMLCallbackHandler handler)static voidsetAttributes(Element elt, Serializable entity, String... aliasProps)
-
-
-
方法详细资料
-
readXML
public static Object readXML(Object xmlFile, String charset, boolean isValidator, XMLCallbackHandler handler) throws Exception
- 参数:
xmlFile-charset-isValidator-handler-- 抛出:
Exception
-
setAttributes
public static void setAttributes(Element elt, Serializable entity, String... aliasProps) throws Exception
- 参数:
elt-entity-aliasProps- 属性映射,长度必须是偶数,如:a对应到a1,{a,a1,b,b1}- 抛出:
Exception
-
-