src/main/java/com/itfsw/mybatis/generator/plugins/utils/XmlElementGeneratorTools.java
private static XmlElement generateTrim(boolean bracket) {
        XmlElement trimEle = new XmlElement("trim");
        if (bracket) {
            trimEle.addAttribute(new Attribute("prefix", "("));
            trimEle.addAttribute(new Attribute("suffix", ")"));
            trimEle.addAttribute(new Attribute("suffixOverrides", ","));
        } else {
            trimEle.addAttribute(new Attribute("suffixOverrides", ","));
        }
        return trimEle;
    }
private static XmlElement generateTrim(boolean bracket) {
        XmlElement trimEle = new XmlElement("trim");
        if (bracket) {
            trimEle.addAttribute(new Attribute("prefix", "("));
            trimEle.addAttribute(new Attribute("suffix", ")"));
            trimEle.addAttribute(new Attribute("suffixOverrides", ","));
        } else {
            trimEle.addAttribute(new Attribute("suffixOverrides", ","));
        }
        return trimEle;
    }
private static XmlElement generateTrim ( boolean bracket ) { XmlElement trimEle = new XmlElement ( "trim" ) ; if ( bracket ) { trimEle . addAttribute ( new Attribute ( "prefix" , "(" ) ) ; trimEle . addAttribute ( new Attribute ( "suffix" , ")" ) ) ; trimEle . addAttribute ( new Attribute ( "suffixOverrides" , "," ) ) ; } else { trimEle . addAttribute ( new Attribute ( "suffixOverrides" , "," ) ) ; } return trimEle ; }
trim 节点
@param bracket
@return
trim 节点