java search.addfilteror_java list toarray

java search.addfilteror_java list toarray本文整理匯總了Java中de.invesdwin.util.lang.Strings.isNotBlank方法的典型用法代碼示例。如果您正苦於以下問題:JavaStrings.isNotBlank方法的具體用法?JavaStrings.isNotBlank怎麽用?JavaStrings.isNotBlank使用的例子?那麽恭喜您,這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

本文整理匯總了Java中de.invesdwin.util.lang.Strings.isNotBlank方法的典型用法代碼示例。如果您正苦於以下問題:Java Strings.isNotBlank方法的具體用法?Java Strings.isNotBlank怎麽用?Java Strings.isNotBlank使用的例子?那麽恭喜您, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類de.invesdwin.util.lang.Strings的用法示例。

在下文中一共展示了Strings.isNotBlank方法的21個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於我們的係統推薦出更棒的Java代碼示例。

示例1: rWriteConsole

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

@Override

public synchronized void rWriteConsole(final Rengine rengine, final String text, final int oType) {

if (oType != 0) {

error = true;

errorMessage.append(text);

} else {

//might have been a simple warning message like loading package or so, since a normal message followed it

errorMessage.setLength(0);

}

if (text.endsWith(“\n”)) {

message.append(text);

if (Strings.isNotBlank(message)) {

if (error) {

IScriptTaskRunnerR.LOG.warn(String.valueOf(message).trim());

} else {

IScriptTaskRunnerR.LOG.debug(String.valueOf(message).trim());

}

}

message.setLength(0);

error = false;

} else {

message.append(text);

}

}

開發者ID:subes,項目名稱:invesdwin-context-r,代碼行數:25,

示例2: dropIndexNewTx

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

@Transactional

private void dropIndexNewTx(final Class> entityClass, final Index index, final EntityManager em,

final UniqueNameGenerator uniqueNameGenerator) {

Assertions.assertThat(index.columnNames().length).isGreaterThan(0);

final String comma = “, “;

final String name;

if (Strings.isNotBlank(index.name())) {

name = index.name();

} else {

name = “idx” + entityClass.getSimpleName();

}

final StringBuilder cols = new StringBuilder();

final ManagedType> managedType = em.getMetamodel().managedType(entityClass);

for (final String columnName : index.columnNames()) {

if (cols.length() > 0) {

cols.append(comma);

}

final Attribute, ?> column = Attributes.findAttribute(managedType, columnName);

cols.append(Attributes.extractNativeSqlColumnName(column));

}

final String create = “DROP INDEX ” + uniqueNameGenerator.get(name) + ” ON ” + entityClass.getSimpleName();

em.createNativeQuery(create).executeUpdate();

}

開發者ID:subes,項目名稱:invesdwin-context-persistence,代碼行數:25,

示例3: ModelButton

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

public ModelButton(final SubmitButtonHtmlElement element) {

//menu button does not get any css classes, thus keeping the values set in markup

super(element.getWicketId(), element.getTitleModel(), null, Type.Menu);

this.element = element;

final String iconCssClass = element.getIconCssClassModel().getObject();

if (Strings.isNotBlank(iconCssClass)) {

setIconType(new IconType(iconCssClass) {

@Override

public String cssClassName() {

return getCssClassName();

}

});

}

//allow styled properties for label

final Label label = Reflections.field(“label”).ofType(Label.class).in(this).get();

label.setEscapeModelStrings(false);

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:18,

示例4: updateCategoryAndTitle

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String category1 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY1);

if (“N.A. Market—————-“.equals(category1)) {

curRegion = CompanyRegion.NorthAmerica;

} else if (“E-A Market—————-“.equals(category1)) {

curRegion = CompanyRegion.EuropeAfrica;

} else if (“A-P Market—————-“.equals(category1)) {

curRegion = CompanyRegion.AsiaPacific;

//

} else if (“L.A. Market—————-“.equals(category1)) {

curRegion = CompanyRegion.LatinAmerica;

}

final String title1 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE1);

if (Strings.isNotBlank(title1)) {

curTitle1 = title1;

curTitle2 = null;

}

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:24,

示例5: updateCategoryAndTitle

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String category1 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY1);

if (Strings.isNotBlank(category1)) {

curCategory1 = category1;

curCategory2 = null;

curTitle1 = null;

curTitle2 = null;

//

}

final String category2 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY2);

if (Strings.isNotBlank(category2)) {

curCategory2 = category2;

curTitle1 = null;

curTitle2 = null;

}

final String title1 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE1);

if (Strings.isNotBlank(title1)) {

curTitle1 = title1;

curTitle2 = null;

}

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:26,

示例6: findPageClass

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

@SuppressWarnings(“unchecked”)

public Class findPageClass(final Class> modelClass) {

if (modelClass == null) {

return null;

}

try {

String relModelPath = modelClass.getName();

final String modelNameSuffix = ModelClassContext.extractModelNameSuffix(modelClass);

if (Strings.isNotBlank(modelNameSuffix)) {

relModelPath = Strings.removeEnd(relModelPath, modelNameSuffix);

}

return (Class) Class.forName(relModelPath + PAGE_CLASS_MODEL_SUFFIX);

} catch (final ClassNotFoundException e) {

return findPageClass(modelClass.getSuperclass());

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:17,

示例7: validate

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

@Override

public void validate(final IValidatable validatable) {

try {

final IValidatableBeanPathElement cElement = (IValidatableBeanPathElement) element.getModelElement()

.getBeanPathElement();

final Object validatableValue = Components.getValidatableValue(component, validatable);

final Object convertedValidatableValue = convertValidatableValueToBeanPathValue(cElement, validatableValue);

final String message = cElement.getValidateElement().validate(convertedValidatableValue);

if (Strings.isNotBlank(message)) {

//use translated key or use message as fallback if no translation found

final String normalizedMessage = normalizeMessage(message);

final ValidationError error = new ValidationError(normalizedMessage);

error.addKey(normalizedMessage);

error.setVariable(TITLE, surroundTitle(element.getTitleModel().getObject()));

validatable.error(error);

}

} finally {

GuiService.get().processRequestFinally(component);

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:21,

示例8: updateCategoryAndTitle

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String category1 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY1);

if (Strings.isNotBlank(category1)) {

curCategory1 = category1;

curCategory2 = null;

curTitle1 = null;

curTitle2 = null;

}

final String category2 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY2);

if (Strings.isNotBlank(category2)) {

curCategory2 = category2;

curTitle1 = null;

curTitle2 = null;

}

final String title1 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE1);

if (Strings.isNotBlank(title1)) {

curTitle1 = title1;

curTitle2 = null;

}

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:25,

示例9: updateCategoryAndTitle

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String category1 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY1);

if (Strings.isNotBlank(category1)) {

curCategory1 = category1;

curTitle1 = null;

curTitle2 = null;

}

final String title1 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE1);

if (Strings.isNotBlank(title1)) {

curTitle1 = title1;

curTitle2 = null;

}

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:18,

示例10: updateCategoryAndTitle

​點讚 3

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String category1 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY1);

if (“N.A. Market—————-“.equals(category1)) {

curRegion = CompanyRegion.NorthAmerica;

} else if (“E-A Market—————-“.equals(category1)) {

curRegion = CompanyRegion.EuropeAfrica;

} else if (“A-P Market—————-“.equals(category1)) {

curRegion = CompanyRegion.AsiaPacific;

} else if (“L.A. Market—————-“.equals(category1)) {

curRegion = CompanyRegion.LatinAmerica;

}

final String title1 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE1);

if (Strings.isNotBlank(title1)) {

curTitle1 = title1;

curTitle2 = null;

}

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:23,

示例11: println

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

@Override

public synchronized void println(final String text, final Level level) {

if (Strings.isNotBlank(text)) {

switch (level) {

case OUTPUT:

IScriptTaskRunnerR.LOG.debug(text);

errorMessage.setLength(0);

case INFO:

IScriptTaskRunnerR.LOG.trace(text);

errorMessage.setLength(0);

break;

case WARNING:

IScriptTaskRunnerR.LOG.warn(text);

errorMessage.append(text);

errorMessage.append(“\n”);

break;

case ERROR:

IScriptTaskRunnerR.LOG.error(text);

errorMessage.append(text);

errorMessage.append(“\n”);

break;

default:

IScriptTaskRunnerR.LOG.trace(text);

errorMessage.setLength(0);

break;

}

}

}

開發者ID:subes,項目名稱:invesdwin-context-r,代碼行數:29,

示例12: createIndexNewTx

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

@Transactional

private void createIndexNewTx(final Class> entityClass, final Index index, final EntityManager em,

final UniqueNameGenerator uniqueNameGenerator) {

Assertions.assertThat(index.columnNames().length).isGreaterThan(0);

final String comma = “, “;

final String name;

if (Strings.isNotBlank(index.name())) {

name = index.name();

} else {

name = “idx” + entityClass.getSimpleName();

}

final StringBuilder cols = new StringBuilder();

final ManagedType> managedType = em.getMetamodel().managedType(entityClass);

for (final String columnName : index.columnNames()) {

if (cols.length() > 0) {

cols.append(comma);

}

final Attribute, ?> column = Attributes.findAttribute(managedType, columnName);

cols.append(Attributes.extractNativeSqlColumnName(column));

}

final String unique;

if (index.unique()) {

unique = ” UNIQUE”;

} else {

unique = “”;

}

final String create = “CREATE” + unique + ” INDEX ” + uniqueNameGenerator.get(name) + ” ON “

+ entityClass.getSimpleName() + ” ( ” + cols + ” )”;

em.createNativeQuery(create).executeUpdate();

}

開發者ID:subes,項目名稱:invesdwin-context-persistence,代碼行數:33,

示例13: loadValue

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

@Override

protected File loadValue(final MarkupType key) {

String relModelPath = getModelClass().getName().replace(“.”, “/”);

if (Strings.isNotBlank(modelNameSuffix)) {

relModelPath = Strings.removeEnd(relModelPath, modelNameSuffix);

}

final String markupClassSuffix = key.toString();

final String relFilePath = relModelPath + markupClassSuffix + FILE_ENDING_HTML;

return new File(getDestination(), relFilePath);

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:11,

示例14: setIconCssClass

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void setIconCssClass(final BootstrapAjaxFallbackButton button) {

final String iconCssClass = element.getIconCssClassModel().getObject();

if (Strings.isNotBlank(iconCssClass)) {

button.setIconType(new IconType(iconCssClass) {

@Override

public String cssClassName() {

return getCssClassName();

}

});

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:12,

示例15: getExistingMarkupTypes

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

public List getExistingMarkupTypes() {

final List availableMarkupTypes = new ArrayList();

for (final MarkupType markupType : MarkupType.values()) {

String relModelPath = getModelClass().getName().replace(“.”, “/”);

if (Strings.isNotBlank(modelNameSuffix)) {

relModelPath = Strings.removeEnd(relModelPath, modelNameSuffix);

}

final String markupClassSuffix = markupType.toString();

for (final String fileEnding : new String[] { FILE_ENDING_JAVA, FILE_ENDING_HTML }) {

final String relFilePath = relModelPath + markupClassSuffix + fileEnding;

final File file = new File(getDestination(), relFilePath);

final boolean foundFileEnding;

if (file.exists()) {

foundFileEnding = true;

} else if (FILE_ENDING_JAVA.equals(fileEnding)) {

foundFileEnding = Reflections.classExists(getModelClass().getName() + markupClassSuffix);

} else {

foundFileEnding = false;

}

if (foundFileEnding) {

availableMarkupTypes.add(markupType);

break;

}

}

}

return availableMarkupTypes;

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:28,

示例16: updateCategoryAndTitle

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String category2 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY2);

if (Strings.isNotBlank(category2)) {

curCategory2 = category2;

curTitle2 = null;

}

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:12,

示例17: findPanelClass

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

public Class findPanelClass(final Class> modelClass) {

if (modelClass == null) {

return null;

}

try {

String relModelPath = modelClass.getName();

final String modelNameSuffix = ModelClassContext.extractModelNameSuffix(modelClass);

if (Strings.isNotBlank(modelNameSuffix)) {

relModelPath = Strings.removeEnd(relModelPath, modelNameSuffix);

}

return (Class) Class.forName(relModelPath + PANEL_CLASS_MODEL_SUFFIX);

} catch (final ClassNotFoundException e) {

return findPanelClass(modelClass.getSuperclass());

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:16,

示例18: checkBlank

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

public static void checkBlank(final String str) {

if (Strings.isNotBlank(str)) {

assertThat(str).isBlank();

failExceptionExpected();

}

}

開發者ID:subes,項目名稱:invesdwin-util,代碼行數:7,

示例19: updateCategoriesAndTitles

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoriesAndTitles(final FieldSet fieldSet) {

final String subReport = fieldSet.readString(CompanyOperatingReportParserMapper.SUB_REPORT);

if (“E-A”.equals(subReport)) {

curRegion = CompanyRegion.EuropeAfrica;

curCategory2 = null;

curTitle1 = null;

curTitle2 = null;

brandedProduction = false;

pLabelProduction = false;

} else if (“A-P”.equals(subReport)) {

curRegion = CompanyRegion.AsiaPacific;

curCategory2 = null;

curTitle1 = null;

curTitle2 = null;

brandedProduction = false;

pLabelProduction = false;

} else if (“L.A.”.equals(subReport)) {

curRegion = CompanyRegion.LatinAmerica;

curCategory2 = null;

curTitle1 = null;

curTitle2 = null;

brandedProduction = false;

pLabelProduction = false;

}

final String category1 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY1);

if (“Branded”.equals(category1)) {

brandedProduction = true;

curCategory2 = null;

curTitle1 = null;

curTitle2 = null;

} else if (“P-Label”.equals(category1)) {

pLabelProduction = true;

curCategory2 = null;

curTitle1 = null;

curTitle2 = null;

}

final String category2 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY2);

if (Strings.isNotBlank(category2)) {

curCategory2 = category2;

curTitle1 = null;

curTitle2 = null;

}

final String title1 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE1);

if (Strings.isNotBlank(title1)) {

curTitle1 = title1;

curTitle2 = null;

}

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:54,

示例20: updateCategoryAndTitle

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String category2 = fieldSet.readString(CompanyOperatingReportParserMapper.CATEGORY2);

if (Strings.isNotBlank(category2)) {

curCategory2 = category2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:7,

示例21: updateCategoryAndTitle

​點讚 2

import de.invesdwin.util.lang.Strings; //導入方法依賴的package包/類

protected void updateCategoryAndTitle(final FieldSet fieldSet) {

final String title2 = fieldSet.readString(CompanyOperatingReportParserMapper.TITLE2);

if (Strings.isNotBlank(title2)) {

curTitle2 = title2;

}

}

開發者ID:subes,項目名稱:invesdwin-nowicket,代碼行數:7,

注:本文中的de.invesdwin.util.lang.Strings.isNotBlank方法示例整理自Github/MSDocs等源碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/169976.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号