public class XMLUtil extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
convertType(String value,
String lowCaseTypeName) |
static Object |
readXML(Object xmlFile,
String charset,
boolean isValidator,
XMLCallbackHandler handler) |
static void |
setAttributes(Element elt,
Serializable entity,
String... aliasProps) |
public static Object readXML(Object xmlFile, String charset, boolean isValidator, XMLCallbackHandler handler) throws Exception
xmlFile - charset - isValidator - handler - Exceptionpublic static void setAttributes(Element elt, Serializable entity, String... aliasProps) throws Exception
elt - entity - aliasProps - 属性映射,长度必须是偶数,如:a对应到a1,{a,a1,b,b1}ExceptionCopyright © 2023. All rights reserved.