package com.fanruan.api.conf.xml; import com.fr.config.holder.Conf; import com.fr.stable.xml.XMLable; import java.util.Collection; /** * @author richie * @version 10.0 * Created by richie on 2019-08-30 * 将xml文件写入fine_conf_entity的帮助类,不建议使用 */ public class XmlHolderKit { /** * 创建一个要写入配置的xml多项 * * @param 类型 * @param 类型 * @param t 配置对象 * @param clazz 类型 * @param xmlTag xml标签 * @return 配置对象 */ public static Conf obj(T t, Class clazz, String xmlTag) { return new XmlConf(t, clazz, xmlTag); } public static XmlColConf> collection(Collection t, Class clazz) { return collection(t,clazz,true); } public static XmlColConf> collection(Collection t, Class clazz, boolean order) { return new XmlColConf>(t, clazz, order); } }