package org.intellij.ibatis;

import com.intellij.util.xml.DomFileDescription;
import org.intellij.ibatis.dom.sqlMap.*;
import org.intellij.ibatis.dom.sqlMap.impl.*;

/**
 * file description for iBATIS configuration xml file
 */
public class IbatisSqlMapFileDescription extends DomFileDescription<SqlMap> {
    public IbatisSqlMapFileDescription() {
        super(SqlMap.class, "sqlMap");
    }

    protected void initializeFileDescription() {
        registerImplementation(TypeAlias.class, TypeAliasImpl.class);
        registerImplementation(ParameterMap.class, ParameterMapImpl.class);
        registerImplementation(ResultMap.class, ResultMapImpl.class);
        registerImplementation(Result.class, ResultImpl.class);
        registerImplementation(Sql.class, SqlImpl.class);
        registerImplementation(Select.class, SelectImpl.class);
        registerImplementation(Insert.class, InsertImpl.class);
        registerImplementation(Update.class, UpdateImpl.class);
        registerImplementation(Delete.class, DeleteImpl.class);
        registerImplementation(Statement.class, StatementImpl.class);
        registerImplementation(Procedure.class, ProcedureImpl.class);
        registerImplementation(CacheModel.class, CacheModelImpl.class);
        registerImplementation(Parameter.class, ParameterImpl.class);
        registerImplementation(Include.class, IncludeImpl.class);
    }
}
@@ -230,13 +230,36 @@
 le%0D%0A
+ *%0D%0A * @author  Jacky%0D%0A
  */%0D%0A
-
 publ
@@ -468,32 +468,68 @@
 escription() %7B%0D%0A
+        //meta information related%0D%0A
         register
@@ -652,32 +652,103 @@
 apImpl.class);%0D%0A
+        registerImplementation(Parameter.class, ParameterImpl.class);%0D%0A
         register
@@ -859,32 +859,60 @@
 ltImpl.class);%0D%0A
+        //SQL code related%0D%0A
         register
@@ -946,32 +946,129 @@
 qlImpl.class);%0D%0A
+        registerImplementation(Include.class, IncludeImpl.class);%0D%0A        //statement related %0D%0A
         register
@@ -1445,32 +1445,49 @@
 reImpl.class);%0D%0A
+        //other%0D%0A
         register
@@ -1547,144 +1547,8 @@
 );%0D%0A
-        registerImplementation(Parameter.class, ParameterImpl.class);%0D%0A        registerImplementation(Include.class, IncludeImpl.class);
 %0D%0A  

comment updated