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 : "";
}
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 " ";
}
}
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 " ";
}
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();
}
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 " ";
}
}
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();
}
Aggregations