Search in sources :

Example 11 with Document

use of org.mybatis.generator.api.dom.xml.Document in project generator by mybatis.

the class IntrospectedTableIbatis2Java2Impl method getGeneratedXmlFiles.

@Override
public List<GeneratedXmlFile> getGeneratedXmlFiles() {
    List<GeneratedXmlFile> answer = new ArrayList<GeneratedXmlFile>();
    Document document = sqlMapGenerator.getDocument();
    GeneratedXmlFile gxf = new GeneratedXmlFile(document, getIbatis2SqlMapFileName(), getIbatis2SqlMapPackage(), context.getSqlMapGeneratorConfiguration().getTargetProject(), true, context.getXmlFormatter());
    if (context.getPlugins().sqlMapGenerated(gxf, this)) {
        answer.add(gxf);
    }
    return answer;
}
Also used : ArrayList(java.util.ArrayList) Document(org.mybatis.generator.api.dom.xml.Document) GeneratedXmlFile(org.mybatis.generator.api.GeneratedXmlFile)

Aggregations

Document (org.mybatis.generator.api.dom.xml.Document)11 GeneratedXmlFile (org.mybatis.generator.api.GeneratedXmlFile)5 ArrayList (java.util.ArrayList)4 Attribute (org.mybatis.generator.api.dom.xml.Attribute)4 XmlElement (org.mybatis.generator.api.dom.xml.XmlElement)4 Messages.getString (org.mybatis.generator.internal.util.messages.Messages.getString)3 Date (java.util.Date)2 TextElement (org.mybatis.generator.api.dom.xml.TextElement)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 StringReader (java.io.StringReader)1 Properties (java.util.Properties)1 Test (org.junit.Test)1 CommentGenerator (org.mybatis.generator.api.CommentGenerator)1 DefaultXmlFormatter (org.mybatis.generator.api.dom.DefaultXmlFormatter)1 InputSource (org.xml.sax.InputSource)1