• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mybatis / generator / 1945

14 Jan 2026 02:23PM UTC coverage: 88.838% (+0.04%) from 88.799%
1945

Pull #1414

github

web-flow
Merge 5eec5583d into 5d3363986
Pull Request #1414: Major Refactoring - Context is now configuration only, Plugins Potentially Impacted

2347 of 3184 branches covered (73.71%)

490 of 582 new or added lines in 133 files covered. (84.19%)

2 existing lines in 1 file now uncovered.

11517 of 12964 relevant lines covered (88.84%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/core/mybatis-generator-core/src/main/java/org/mybatis/generator/api/GenericGeneratedFile.java
1
/*
2
 *    Copyright 2006-2026 the original author or authors.
3
 *
4
 *    Licensed under the Apache License, Version 2.0 (the "License");
5
 *    you may not use this file except in compliance with the License.
6
 *    You may obtain a copy of the License at
7
 *
8
 *       https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *    Unless required by applicable law or agreed to in writing, software
11
 *    distributed under the License is distributed on an "AS IS" BASIS,
12
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *    See the License for the specific language governing permissions and
14
 *    limitations under the License.
15
 */
16
package org.mybatis.generator.api;
17

18
import java.util.Optional;
19

20
/**
21
 * Abstract class that holds information common to all generated files.
22
 *
23
 * @author Jeff Butler
24
 */
25
public abstract class GenericGeneratedFile extends GeneratedFile {
26

27
    protected GenericGeneratedFile(String targetProject) {
NEW
28
        super(targetProject);
×
NEW
29
    }
×
30

31
    /**
32
     * Returns the entire contents of the generated file. Clients
33
     * can simply save the value returned from this method as the file contents.
34
     * Subclasses such as @see org.mybatis.generator.api.GeneratedJavaFile offer
35
     * more fine -grained access to file parts, but still implement this method
36
     * in the event that the entire contents are desired.
37
     *
38
     * @return Returns the content.
39
     */
40
    public abstract String getFormattedContent();
41

42
    public abstract Optional<String> getFileEncoding();
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc