use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class DfPropHtmlManager method loadRequest.
// ===================================================================================
// Load Request
// ============
public void loadRequest() {
final DfDocumentProperties prop = getDocumentProperties();
final Map<String, Map<String, Object>> propertiesHtmlMap = prop.getPropertiesHtmlMap();
if (propertiesHtmlMap.isEmpty()) {
return;
}
for (Entry<String, Map<String, Object>> entry : propertiesHtmlMap.entrySet()) {
final String requestName = entry.getKey();
_log.info("[" + requestName + "]");
final Map<String, Object> requestMap = entry.getValue();
final DfPropHtmlRequest request = prepareRequest(requestMap, requestName);
_requestMap.put(requestName, request);
}
analyzePropertiesDiff();
}
use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class DfPropHtmlPropertyLangElement method getPropertyValueHtmlEncoded.
public String getPropertyValueHtmlEncoded() {
final DfDocumentProperties prop = DfBuildProperties.getInstance().getDocumentProperties();
final String resolved = prop.resolveTextForSchemaHtml(_propertyValue);
return resolved != null ? resolved : "";
}
use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class Table method getCommentForJavaDoc.
public String getCommentForJavaDoc() {
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final String comment = prop.resolveTextForJavaDoc(getComment(), "");
return comment != null ? comment : "";
}
use of org.dbflute.properties.DfDocumentProperties in project dbflute-core by dbflute.
the class Table method getForeignTableNameCommaStringWithHtmlHref.
public String getForeignTableNameCommaStringWithHtmlHref() {
// for SchemaHTML
final StringBuilder sb = new StringBuilder();
final DfDocumentProperties prop = getProperties().getDocumentProperties();
final DfSchemaHtmlBuilder schemaHtmlBuilder = new DfSchemaHtmlBuilder(prop);
final String delimiter = ", ";
final List<ForeignKey> foreignKeyList = getForeignKeyList();
final int size = foreignKeyList.size();
if (size == 0) {
return " ";
}
for (int i = 0; i < size; i++) {
final ForeignKey fk = foreignKeyList.get(i);
final Table foreignTable = fk.getForeignTable();
sb.append(schemaHtmlBuilder.buildRelatedTableLink(fk, foreignTable, 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 getTitleForSchemaHtml.
public String getTitleForSchemaHtml() {
final StringBuilder sb = new StringBuilder();
sb.append("type=").append(_type);
if (isAdditionalSchema()) {
sb.append(", schema=").append(getDocumentSchema());
}
sb.append(", primaryKey={").append(getPrimaryKeyNameCommaString()).append("}");
sb.append(", nameLength=").append(getTableDbName().length());
sb.append(", columnCount=").append(getColumns().length);
final DfDocumentProperties prop = getProperties().getDocumentProperties();
return " title=\"" + prop.resolveAttributeForSchemaHtml(sb.toString()) + "\"";
}
Aggregations