类 XMLUtil


  • public class XMLUtil
    extends Object
    版本:
    v1.0,Date:2009-4-27
    作者:
    zhongxuchen
    • 方法详细资料

      • setAttributes

        public static void setAttributes​(Element elt,
                                         Serializable entity,
                                         String... aliasProps)
                                  throws Exception
        参数:
        elt -
        entity -
        aliasProps - 属性映射,长度必须是偶数,如:a对应到a1,{a,a1,b,b1}
        抛出:
        Exception
      • convertType

        public static Object convertType​(String value,
                                         String lowCaseTypeName)
        参数:
        value -
        lowCaseTypeName - 类型名称小写
        返回: