本文整理汇总了Java中org.insightech.er.util.Check.isEmptyTrim方法的典型用法代码示例。如果您正苦于以下问题:Java Check.isEmptyTrim方法的具体用法?Java Check.isEmptyTrim怎么用?Java Check.isEmptyTrim使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.insightech.er.util.Check
的用法示例。
在下文中一共展示了Check.isEmptyTrim方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
public List<String> validate() {
final List<String> errorMessage = new ArrayList<String>();
if (Check.isEmptyTrim(getDataFile())) {
errorMessage.add("error.tablespace.data.file.empty");
}
if (Check.isEmptyTrim(getLogFileGroup())) {
errorMessage.add("error.tablespace.log.file.group.empty");
}
if (Check.isEmptyTrim(getEngine())) {
errorMessage.add("error.tablespace.storage.engine.empty");
}
return errorMessage;
}
示例2: replaceClassInfo
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private String replaceClassInfo(String content, String classDescription,
String className, String classNameSufix) {
if (Check.isEmptyTrim(this.exportJavaSetting.getPackageName())) {
content = content.replaceAll("package @package;\r\n\r\n", "");
} else {
content = content.replaceAll("@package",
this.exportJavaSetting.getPackageName());
}
content = content.replaceAll("@classDescription", classDescription);
content = content.replaceAll("@PhysicalTableName", className);
content = content.replaceAll("@suffix",
this.getCamelCaseName(classNameSufix, true));
content = content.replaceAll("@version", "@version \\$Id\\$");
return content;
}
示例3: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
public List<String> validate() {
final List<String> errorMessage = new ArrayList<String>();
if (isAutoExtend() && Check.isEmptyTrim(getAutoExtendSize())) {
errorMessage.add("error.tablespace.auto.extend.size.empty");
}
return errorMessage;
}
示例4: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
@Override
public List<String> validate() {
final List<String> errorMessage = new ArrayList<String>();
if (Check.isEmptyTrim(getLocation())) {
errorMessage.add("error.tablespace.location.empty");
}
return errorMessage;
}
示例5: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public boolean validate() throws InputException {
final String engine = engineCombo.getText();
((MySQLTableProperties) tableViewProperties).setStorageEngine(engine);
final String characterSet = characterSetCombo.getText();
((MySQLTableProperties) tableViewProperties).setCharacterSet(characterSet);
final String collation = collationCombo.getText();
((MySQLTableProperties) tableViewProperties).setCollation(collation);
final String str = primaryKeyLengthOfText.getText();
Integer length = null;
try {
if (!Check.isEmptyTrim(str)) {
length = Integer.valueOf(str);
}
} catch (final Exception e) {
throw new InputException("error.column.length.degit");
}
((MySQLTableProperties) tableViewProperties).setPrimaryKeyLengthOfText(length);
if (table != null) {
for (final NormalColumn primaryKey : table.getPrimaryKeys()) {
final SqlType type = primaryKey.getType();
if (type != null && type.isFullTextIndexable() && !type.isNeedLength(diagram.getDatabase())) {
if (length == null || length == 0) {
throw new InputException("error.primary.key.length.empty");
}
}
}
}
return super.validate();
}
示例6: replaceClassInfo
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private String replaceClassInfo(String content, final String classDescription, final String className, final String classNameSufix) {
if (Check.isEmptyTrim(exportJavaSetting.getPackageName())) {
content = content.replaceAll("package @package;\r\n\r\n", "");
} else {
content = content.replaceAll("@package", exportJavaSetting.getPackageName());
}
content = content.replaceAll("@classDescription", classDescription);
content = content.replaceAll("@PhysicalTableName", className);
content = content.replaceAll("@suffix", this.getCamelCaseName(classNameSufix, true));
content = content.replaceAll("@version", "@version \\$Id\\$");
return content;
}
示例7: loadFont
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private void loadFont(final ViewableModel viewableModel, final Element element) {
final String fontName = getStringValue(element, "font_name");
final int fontSize = this.getIntValue(element, "font_size");
if (!Check.isEmptyTrim(fontName)) {
viewableModel.setFontName(fontName);
}
viewableModel.setFontSize(fontSize);
}
示例8: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
public List<String> validate() {
List<String> errorMessage = new ArrayList<String>();
if (this.isAutoExtend() && Check.isEmptyTrim(this.getAutoExtendSize())) {
errorMessage.add("error.tablespace.auto.extend.size.empty");
}
return errorMessage;
}
示例9: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
public List<String> validate() {
List<String> errorMessage = new ArrayList<String>();
if (Check.isEmptyTrim(this.getLocation())) {
errorMessage.add("error.tablespace.location.empty");
}
return errorMessage;
}
示例10: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
public List<String> validate() {
List<String> errorMessage = new ArrayList<String>();
if (Check.isEmptyTrim(this.getDataFile())) {
errorMessage.add("error.tablespace.data.file.empty");
}
if (Check.isEmptyTrim(this.getLogFileGroup())) {
errorMessage.add("error.tablespace.log.file.group.empty");
}
if (Check.isEmptyTrim(this.getEngine())) {
errorMessage.add("error.tablespace.storage.engine.empty");
}
return errorMessage;
}
示例11: loadFont
import org.insightech.er.util.Check; //导入方法依赖的package包/类
private void loadFont(ViewableModel viewableModel, Element element) {
String fontName = this.getStringValue(element, "font_name");
int fontSize = this.getIntValue(element, "font_size");
if (!Check.isEmptyTrim(fontName)) {
viewableModel.setFontName(fontName);
}
viewableModel.setFontSize(fontSize);
}
示例12: validate
import org.insightech.er.util.Check; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public boolean validate() throws InputException {
String engine = this.engineCombo.getText();
((MySQLTableProperties) this.tableViewProperties)
.setStorageEngine(engine);
String characterSet = this.characterSetCombo.getText();
((MySQLTableProperties) this.tableViewProperties)
.setCharacterSet(characterSet);
String collation = this.collationCombo.getText();
((MySQLTableProperties) this.tableViewProperties)
.setCollation(collation);
String str = this.primaryKeyLengthOfText.getText();
Integer length = null;
try {
if (!Check.isEmptyTrim(str)) {
length = Integer.valueOf(str);
}
} catch (Exception e) {
throw new InputException("error.column.length.degit");
}
((MySQLTableProperties) this.tableViewProperties)
.setPrimaryKeyLengthOfText(length);
if (this.table != null) {
for (NormalColumn primaryKey : this.table.getPrimaryKeys()) {
SqlType type = primaryKey.getType();
if (type != null && type.isFullTextIndexable()
&& !type.isNeedLength(this.diagram.getDatabase())) {
if (length == null || length == 0) {
throw new InputException(
"error.primary.key.length.empty");
}
}
}
}
return super.validate();
}