Search in sources :

Example 1 with DfLanguageDependencyCSharp

use of org.dbflute.logic.generate.language.DfLanguageDependencyCSharp in project dbflute-core by dbflute.

the class DfBasicProperties method getLanguageDependency.

public DfLanguageDependency getLanguageDependency() {
    if (_languageDependency != null) {
        return _languageDependency;
    }
    final DfLanguageDependency lang;
    if (isTargetLanguageJava()) {
        lang = new DfLanguageDependencyJava();
    } else if (isTargetLanguageCSharp()) {
        lang = new DfLanguageDependencyCSharp();
    } else if (isTargetLanguagePhp()) {
        lang = new DfLanguageDependencyPhp();
    } else if (isTargetLanguageScala()) {
        lang = new DfLanguageDependencyScala();
    } else {
        String msg = "The language is unsupported: " + getTargetLanguage();
        throw new IllegalStateException(msg);
    }
    _languageDependency = lang;
    return _languageDependency;
}
Also used : DfLanguageDependencyPhp(org.dbflute.logic.generate.language.DfLanguageDependencyPhp) DfLanguageDependencyScala(org.dbflute.logic.generate.language.DfLanguageDependencyScala) DfLanguageDependencyCSharp(org.dbflute.logic.generate.language.DfLanguageDependencyCSharp) DfLanguageDependencyJava(org.dbflute.logic.generate.language.DfLanguageDependencyJava) DfLanguageDependency(org.dbflute.logic.generate.language.DfLanguageDependency)

Aggregations

DfLanguageDependency (org.dbflute.logic.generate.language.DfLanguageDependency)1 DfLanguageDependencyCSharp (org.dbflute.logic.generate.language.DfLanguageDependencyCSharp)1 DfLanguageDependencyJava (org.dbflute.logic.generate.language.DfLanguageDependencyJava)1 DfLanguageDependencyPhp (org.dbflute.logic.generate.language.DfLanguageDependencyPhp)1 DfLanguageDependencyScala (org.dbflute.logic.generate.language.DfLanguageDependencyScala)1