src/main/java/com/itfsw/mybatis/generator/plugins/utils/XmlElementGeneratorTools.java
public static XmlElement generateResultMapResultElement(String name, IntrospectedColumn introspectedColumn) {
        XmlElement resultElement = new XmlElement(name);

        resultElement.addAttribute(new Attribute("column", MyBatis3FormattingUtilities.getRenamedColumnNameForResultMap(introspectedColumn)));
        resultElement.addAttribute(new Attribute("property", introspectedColumn.getJavaProperty()));
        resultElement.addAttribute(new Attribute("jdbcType", introspectedColumn.getJdbcTypeName()));

        if (stringHasValue(introspectedColumn.getTypeHandler())) {
            resultElement.addAttribute(new Attribute("typeHandler", introspectedColumn.getTypeHandler()));
        }
        return resultElement;
    }
public static XmlElement generateResultMapResultElement(String name, IntrospectedColumn introspectedColumn) {
        XmlElement resultElement = new XmlElement(name);

        resultElement.addAttribute(new Attribute("column", MyBatis3FormattingUtilities.getRenamedColumnNameForResultMap(introspectedColumn)));
        resultElement.addAttribute(new Attribute("property", introspectedColumn.getJavaProperty()));
        resultElement.addAttribute(new Attribute("jdbcType", introspectedColumn.getJdbcTypeName()));

        if (stringHasValue(introspectedColumn.getTypeHandler())) {
            resultElement.addAttribute(new Attribute("typeHandler", introspectedColumn.getTypeHandler()));
        }
        return resultElement;
    }
public static XmlElement generateResultMapResultElement ( String name , IntrospectedColumn introspectedColumn ) { XmlElement resultElement = new XmlElement ( name ) ; resultElement . addAttribute ( new Attribute ( "column" , MyBatis3FormattingUtilities . getRenamedColumnNameForResultMap ( introspectedColumn ) ) ) ; resultElement . addAttribute ( new Attribute ( "property" , introspectedColumn . getJavaProperty ( ) ) ) ; resultElement . addAttribute ( new Attribute ( "jdbcType" , introspectedColumn . getJdbcTypeName ( ) ) ) ; if ( stringHasValue ( introspectedColumn . getTypeHandler ( ) ) ) { resultElement . addAttribute ( new Attribute ( "typeHandler" , introspectedColumn . getTypeHandler ( ) ) ) ; } return resultElement ; }
生成resultMap的result 节点
@param name
@param introspectedColumn
@return
生成resultMap的result 节点