本文整理汇总了Java中org.insightech.er.util.Check.isEmpty方法的典型用法代码示例。如果您正苦于以下问题:Java Check.isEmpty方法的具体用法?Java Check.isEmpty怎么用?Java Check.isEmpty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.insightech.er.util.Check
的用法示例。
在下文中一共展示了Check.isEmpty方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setData
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @throws IOException
*/
@Override
protected void setData() {
final ExportImageSetting exportImageSetting = settings.getExportSetting().getExportImageSetting();
String outputFile = Format.null2blank(exportImageSetting.getOutputFilePath());
if (Check.isEmpty(outputFile)) {
outputFile = getDefaultOutputFilePath(DEFAULT_EXTENTION);
}
outputFileText.setText(FileUtils.getRelativeFilePath(getBaseDir(), outputFile));
withCategoryImageButton.setSelection(exportImageSetting.isWithCategoryImage());
openAfterSavedButton.setSelection(exportImageSetting.isOpenAfterSaved());
setCategoryData(categoryLabel);
if (diagram.getCurrentCategory() != null) {
withCategoryImageButton.setEnabled(false);
}
}
示例2: perfomeOK
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected void perfomeOK() {
modelProperties.clear();
for (int i = 0; i < table.getItemCount(); i++) {
final TableItem item = table.getItem(i);
if (Check.isEmpty(item.getText(0)) && Check.isEmpty(item.getText(1))) {
continue;
}
final NameValue property = new NameValue(item.getText(0), item.getText(1));
modelProperties.addProperty(property);
}
}
示例3: getCreateTablespaces
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private String getCreateTablespaces(final ERDiagram diagram) {
final StringBuilder ddl = new StringBuilder();
boolean first = true;
if (getDBManager().createTablespaceProperties() != null) {
for (final Tablespace tablespace : diagram.getDiagramContents().getTablespaceSet()) {
if (first) {
ddl.append(LF() + "/* Create Tablespaces */" + LF(2));
first = false;
}
final String description = tablespace.getDescription();
if (semicolon && !Check.isEmpty(description) && ddlTarget.inlineTableComment) {
ddl.append("-- ");
ddl.append(replaceLF(description, LF() + "-- "));
ddl.append(LF());
}
ddl.append(this.getDDL(tablespace));
ddl.append(LF(3));
}
}
return ddl.toString();
}
示例4: getNameWithSchema
import org.insightech.er.util.Check; //导入方法依赖的package包/类
protected String getNameWithSchema(String schema, String name) {
StringBuilder sb = new StringBuilder();
if (Check.isEmpty(schema)) {
schema = this.getDiagram().getDiagramContents().getSettings()
.getTableViewProperties().getSchema();
}
if (!Check.isEmpty(schema)) {
sb.append(schema);
sb.append(".");
}
sb.append(name);
return sb.toString();
}
示例5: enableUseDefaultDriver
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private void enableUseDefaultDriver() {
String database = this.getDBSName();
if (!Check.isEmpty(database)) {
DBManager dbManager = DBManagerFactory.getDBManager(database);
if (StandardSQLDBManager.ID.equals(dbManager.getId())) {
this.useDefaultDriverButton.setSelection(false);
this.useDefaultDriverButton.setEnabled(false);
} else {
this.useDefaultDriverButton.setSelection(true);
this.useDefaultDriverButton.setEnabled(true);
}
}
}
示例6: getUniqueKeyDDL
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getUniqueKeyDDL(ERTable table) {
StringBuilder ddl = new StringBuilder();
for (NormalColumn column : table.getExpandedColumns()) {
if (column.isUniqueKey()) {
ddl.append("," + LF());
ddl.append("\t");
if (!Check.isEmpty(column.getUniqueKeyName())) {
ddl.append("CONSTRAINT ");
ddl.append(column.getUniqueKeyName());
ddl.append(" ");
}
ddl.append("UNIQUE (");
ddl.append(filterName(column.getPhysicalName()));
ddl.append(")");
}
}
ddl.append(super.getUniqueKeyDDL(table));
return ddl.toString();
}
示例7: setData
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*
* @throws IOException
*/
@Override
protected void setData() {
ExportImageSetting exportImageSetting = settings.getExportSetting()
.getExportImageSetting();
String outputFile = Format.null2blank(exportImageSetting
.getOutputFilePath());
if (Check.isEmpty(outputFile)) {
outputFile = this.getDefaultOutputFilePath(DEFAULT_EXTENTION);
}
this.outputFileText.setText(FileUtils.getRelativeFilePath(
this.getBaseDir(), outputFile));
this.withCategoryImageButton.setSelection(exportImageSetting
.isWithCategoryImage());
this.openAfterSavedButton.setSelection(exportImageSetting
.isOpenAfterSaved());
this.setCategoryData(this.categoryLabel);
if (this.diagram.getCurrentCategory() != null) {
this.withCategoryImageButton.setEnabled(false);
}
}
示例8: getPhysicalName
import org.insightech.er.util.Check; //导入方法依赖的package包/类
public String getPhysicalName() {
if (this.getFirstReferencedColumn() != null) {
if (!Check.isEmpty(this.foreignKeyPhysicalName)) {
return this.foreignKeyPhysicalName;
} else {
return this.getFirstReferencedColumn().getPhysicalName();
}
}
return this.word.getPhysicalName();
}
示例9: replaceExtendInfo
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private String replaceExtendInfo(String content) throws IOException {
if (Check.isEmpty(this.exportJavaSetting.getExtendsClass())) {
content = content.replaceAll("@import extends\r\n", "");
content = content.replaceAll("@extends ", "");
} else {
this.importClasseNames
.add(this.exportJavaSetting.getExtendsClass());
content = content.replaceAll("@extends",
Matcher.quoteReplacement(EXTENDS));
int index = this.exportJavaSetting.getExtendsClass().lastIndexOf(
".");
String extendsClassWithoutPackage = null;
if (index == -1) {
extendsClassWithoutPackage = this.exportJavaSetting
.getExtendsClass();
} else {
extendsClassWithoutPackage = this.exportJavaSetting
.getExtendsClass().substring(index + 1);
}
content = content.replaceAll("@extendsClassWithoutPackage",
extendsClassWithoutPackage);
content = content.replaceAll("@extendsClass",
this.exportJavaSetting.getExtendsClass());
}
return content;
}
示例10: getTableNameWithSchema
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getTableNameWithSchema(String schema, String tableName) {
if (!Check.isEmpty(schema)) {
schema = "[" + schema + "]";
}
tableName = "[" + tableName + "]";
return super.getTableNameWithSchema(schema, tableName);
}
示例11: addNewWord
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private void addNewWord(String physicalName, String logicalName, final TranslationResources resources, final Map<String, String> newDictionary) {
physicalName = physicalName.toLowerCase();
logicalName = logicalName.toLowerCase();
if (!Check.isEmpty(physicalName) && !Check.isEmpty(logicalName) && !resources.contains(physicalName) && !newDictionary.containsKey(physicalName)) {
newDictionary.put(physicalName, logicalName);
}
}
示例12: getErrorMessage
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getErrorMessage() {
if (!Check.isEmpty(categoryNameText.getText())) {
addCategoryButton.setEnabled(true);
} else {
addCategoryButton.setEnabled(false);
}
return null;
}
示例13: getDDL
import org.insightech.er.util.Check; //导入方法依赖的package包/类
protected String getDDL(View view) {
StringBuilder ddl = new StringBuilder();
String description = view.getDescription();
if (this.semicolon && !Check.isEmpty(description)
&& this.ddlTarget.inlineTableComment) {
ddl.append("-- ");
ddl.append(replaceLF(description, LF() + "-- "));
ddl.append(LF());
}
ddl.append(this.getCreateOrReplacePrefix() + " VIEW ");
ddl.append(filterName(this.getNameWithSchema(view
.getTableViewProperties().getSchema(), view.getPhysicalName())));
ddl.append(" AS ");
String sql = filterName(view.getSql());
if (sql.endsWith(";")) {
sql = sql.substring(0, sql.length() - 1);
}
ddl.append(sql);
if (this.semicolon) {
ddl.append(";");
}
return ddl.toString();
}
示例14: getUniqueKeyDDL
import org.insightech.er.util.Check; //导入方法依赖的package包/类
protected String getUniqueKeyDDL(final ERTable table) {
final StringBuilder ddl = new StringBuilder();
final List<ComplexUniqueKey> complexUniqueKeyList = table.getComplexUniqueKeyList();
for (final ComplexUniqueKey complexUniqueKey : complexUniqueKeyList) {
ddl.append("," + LF());
ddl.append("\t");
if (!Check.isEmpty(complexUniqueKey.getUniqueKeyName())) {
ddl.append("CONSTRAINT ");
ddl.append(complexUniqueKey.getUniqueKeyName());
ddl.append(" ");
}
ddl.append("UNIQUE (");
boolean first = true;
for (final NormalColumn column : complexUniqueKey.getColumnList()) {
if (!first) {
ddl.append(", ");
}
ddl.append(filterName(column.getPhysicalName()));
first = false;
}
ddl.append(")");
}
return ddl.toString();
}
示例15: getTableNameWithSchema
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
protected String getTableNameWithSchema(String schema, String tableName) {
if (!Check.isEmpty(schema)) {
schema = "[" + schema + "]";
}
tableName = "[" + tableName + "]";
return super.getTableNameWithSchema(schema, tableName);
}