Search in sources :

Example 1 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getCommentForSchemaHtml.

public String getCommentForSchemaHtml() {
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    String comment = prop.resolveTextForSchemaHtml(getComment());
    return comment != null ? comment : "";
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Example 2 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getBehaviorQueryPathTitleForSchemaHtml.

public String getBehaviorQueryPathTitleForSchemaHtml(String behaviorQueryPath) {
    String title = getBehaviorQueryPathTitle(behaviorQueryPath);
    if (Srl.is_NotNull_and_NotTrimmedEmpty(title)) {
        final DfDocumentProperties prop = getProperties().getDocumentProperties();
        title = prop.resolveTextForSchemaHtml(title);
        return "(" + title + ")";
    } else {
        return " ";
    }
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Example 3 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getReferrerTableNameCommaStringWithHtmlHref.

public String getReferrerTableNameCommaStringWithHtmlHref() {
    // for SchemaHTML
    final StringBuilder sb = new StringBuilder();
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    final DfSchemaHtmlBuilder schemaHtmlBuilder = new DfSchemaHtmlBuilder(prop);
    final String delimiter = ", ";
    final List<ForeignKey> referrerList = getReferrerList();
    final int size = referrerList.size();
    if (size == 0) {
        return "&nbsp;";
    }
    for (int i = 0; i < size; i++) {
        final ForeignKey fk = referrerList.get(i);
        final Table referrerTable = fk.getTable();
        sb.append(schemaHtmlBuilder.buildRelatedTableLink(fk, referrerTable, delimiter));
    }
    sb.delete(0, delimiter.length());
    return sb.toString();
}
Also used : DfColumnListToStringBuilder(org.dbflute.logic.generate.column.DfColumnListToStringBuilder) DfDocumentProperties(org.dbflute.properties.DfDocumentProperties) DfSchemaHtmlBuilder(org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder)

Example 4 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Table method getBehaviorQueryPathDescriptionForSchemaHtml.

public String getBehaviorQueryPathDescriptionForSchemaHtml(String behaviorQueryPath) {
    String description = getBehaviorQueryPathDescription(behaviorQueryPath);
    if (Srl.is_NotNull_and_NotTrimmedEmpty(description)) {
        final DfDocumentProperties prop = getProperties().getDocumentProperties();
        description = prop.resolvePreTextForSchemaHtml(description);
        return description;
    } else {
        return "&nbsp;";
    }
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties)

Example 5 with DfDocumentProperties

use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.

the class Column method getReferrerTableCommaStringWithHtmlHref.

public String getReferrerTableCommaStringWithHtmlHref() {
    // mainly for SchemaHTML
    if (_referrerList == null) {
        _referrerList = new ArrayList<ForeignKey>(5);
    }
    final DfDocumentProperties prop = getProperties().getDocumentProperties();
    final DfSchemaHtmlBuilder schemaHtmlBuilder = new DfSchemaHtmlBuilder(prop);
    final String delimiter = ",<br>";
    final StringBuffer sb = new StringBuffer();
    for (ForeignKey fk : _referrerList) {
        final Table referrerTable = fk.getTable();
        sb.append(schemaHtmlBuilder.buildRelatedTableLink(fk, referrerTable, delimiter));
    }
    sb.delete(0, delimiter.length());
    return sb.toString();
}
Also used : DfDocumentProperties(org.dbflute.properties.DfDocumentProperties) DfSchemaHtmlBuilder(org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder)

Aggregations

DfDocumentProperties (org.dbflute.properties.DfDocumentProperties)34 DfSchemaHtmlBuilder (org.dbflute.logic.doc.schemahtml.DfSchemaHtmlBuilder)4 Map (java.util.Map)3 DfColumnListToStringBuilder (org.dbflute.logic.generate.column.DfColumnListToStringBuilder)3 Entry (java.util.Map.Entry)2 BufferedReader (java.io.BufferedReader)1 BufferedWriter (java.io.BufferedWriter)1 FileInputStream (java.io.FileInputStream)1 FileNotFoundException (java.io.FileNotFoundException)1 FileOutputStream (java.io.FileOutputStream)1 IOException (java.io.IOException)1 InputStreamReader (java.io.InputStreamReader)1 OutputStreamWriter (java.io.OutputStreamWriter)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 BigDecimal (java.math.BigDecimal)1 DfBuildProperties (org.dbflute.DfBuildProperties)1 JavaPropertiesProperty (org.dbflute.helper.jprop.JavaPropertiesProperty)1 DfLanguageDependency (org.dbflute.logic.generate.language.DfLanguageDependency)1 DfLanguageGrammar (org.dbflute.logic.generate.language.grammar.DfLanguageGrammar)1 DfBasicProperties (org.dbflute.properties.DfBasicProperties)1