当前位置: 首页>>代码示例>>Java>>正文


Java StringUtil.split方法代码示例

本文整理汇总了Java中com.liferay.portal.kernel.util.StringUtil.split方法的典型用法代码示例。如果您正苦于以下问题:Java StringUtil.split方法的具体用法?Java StringUtil.split怎么用?Java StringUtil.split使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.liferay.portal.kernel.util.StringUtil的用法示例。


在下文中一共展示了StringUtil.split方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTargetFolder

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
public static DLFolder getTargetFolder(
	long groupId, long parentFolderId, String destination) {

	DLFolder dlFolder = null;

	String[] folderNames =
		StringUtil.split(destination, StringPool.FORWARD_SLASH);

	if (folderNames != null && folderNames.length > 0) {
		String name = folderNames[0];
		dlFolder = getFolder(groupId, parentFolderId, name);
		folderNames = ArrayUtil.remove(folderNames, name);
		if (folderNames.length > 0) {
			dlFolder = getTargetFolder(
				groupId, dlFolder.getFolderId(),
				StringUtil.merge(folderNames, StringPool.FORWARD_SLASH));
		}

	}

	return dlFolder;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:23,代码来源:DLFolderUtil.java

示例2: getMessagePayment

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Get payment message
 * 
 * @param pattern
 * @return
 */
public static List<String> getMessagePayment(String pattern) {

	List<String> msgPayments = new ArrayList<String>();
	try {
		pattern = pattern.substring(pattern.indexOf(PAY_MESSAGE), pattern.lastIndexOf(PAY_MESSAGE) + 1);

		String[] splitPattern = StringUtil.split(pattern, PAY_MESSAGE);

		for (String element : splitPattern) {
			if (!element.trim().contentEquals("")) {
				msgPayments.add(StringUtil.trimLeading(element));
			}
		}
	} catch (Exception e) {

	}

	return msgPayments;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:26,代码来源:DossierPaymentUtils.java

示例3: _checkcontains

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * @param pattern
 * @param content
 * @return
 */
private static boolean _checkcontains(String pattern, String content) {

	boolean isContains = false;

	String[] splitPattern = StringUtil.split(pattern, StringPool.SPACE);

	for (String element : splitPattern) {
		if (Validator.equals(element, content)) {
			isContains = true;
			break;

		}
	}

	return isContains;
}
 
开发者ID:VietOpenCPS,项目名称:opencps-v2,代码行数:22,代码来源:DossierPaymentUtils.java

示例4: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the app role2 job pos persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.org.oep.ssomgt.model.AppRole2JobPos")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<AppRole2JobPos>> listenersList = new ArrayList<ModelListener<AppRole2JobPos>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<AppRole2JobPos>)InstanceFactory.newInstance(
						getClassLoader(), listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:AppRole2JobPosPersistenceImpl.java

示例5: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the competence persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.com.liferay.lms.model.Competence")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<Competence>> listenersList = new ArrayList<ModelListener<Competence>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<Competence>)InstanceFactory.newInstance(
						listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:25,代码来源:CompetencePersistenceImpl.java

示例6: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the doc template persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.org.oep.core.dossiermgt.model.DocTemplate")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<DocTemplate>> listenersList = new ArrayList<ModelListener<DocTemplate>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<DocTemplate>)InstanceFactory.newInstance(
						getClassLoader(), listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}

	docTemplateToDossierDocTableMapper = TableMapperFactory.getTableMapper("oep_dossiermgt_dossierdoc2template",
			"docTemplateId", "dossierDocId", this, dossierDocPersistence);
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:28,代码来源:DocTemplatePersistenceImpl.java

示例7: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the activity tries deleted persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.com.liferay.lms.model.ActivityTriesDeleted")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<ActivityTriesDeleted>> listenersList = new ArrayList<ModelListener<ActivityTriesDeleted>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<ActivityTriesDeleted>)InstanceFactory.newInstance(
						listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:25,代码来源:ActivityTriesDeletedPersistenceImpl.java

示例8: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the link persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.de.fraunhofer.fokus.movepla.model.Link")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<Link>> listenersList = new ArrayList<ModelListener<Link>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<Link>) InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        } catch (Exception e) {
            _log.error(e);
        }
    }
}
 
开发者ID:fraunhoferfokus,项目名称:govapps,代码行数:24,代码来源:LinkPersistenceImpl.java

示例9: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the statistic by domain persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.org.oep.dossiermgt.model.StatisticByDomain")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<StatisticByDomain>> listenersList = new ArrayList<ModelListener<StatisticByDomain>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<StatisticByDomain>)InstanceFactory.newInstance(
						getClassLoader(), listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:StatisticByDomainPersistenceImpl.java

示例10: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the dossier proc bookmark persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.org.oep.dossiermgt.model.DossierProcBookmark")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<DossierProcBookmark>> listenersList = new ArrayList<ModelListener<DossierProcBookmark>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<DossierProcBookmark>)InstanceFactory.newInstance(
						getClassLoader(), listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierProcBookmarkPersistenceImpl.java

示例11: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the dossier proc2 process persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.org.oep.processmgt.model.DossierProc2Process")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<DossierProc2Process>> listenersList = new ArrayList<ModelListener<DossierProc2Process>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<DossierProc2Process>)InstanceFactory.newInstance(
						getClassLoader(), listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierProc2ProcessPersistenceImpl.java

示例12: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the process order2 user persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.org.oep.processmgt.model.ProcessOrder2User")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<ProcessOrder2User>> listenersList = new ArrayList<ModelListener<ProcessOrder2User>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<ProcessOrder2User>)InstanceFactory.newInstance(
						getClassLoader(), listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:ProcessOrder2UserPersistenceImpl.java

示例13: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the dossier proc2 role persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.org.oep.core.processmgt.model.DossierProc2Role")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<DossierProc2Role>> listenersList = new ArrayList<ModelListener<DossierProc2Role>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<DossierProc2Role>)InstanceFactory.newInstance(
						getClassLoader(), listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierProc2RolePersistenceImpl.java

示例14: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the p2p activity persistence.
 */
public void afterPropertiesSet() {
	String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
				com.liferay.util.service.ServiceProps.get(
					"value.object.listener.com.liferay.lms.model.P2pActivity")));

	if (listenerClassNames.length > 0) {
		try {
			List<ModelListener<P2pActivity>> listenersList = new ArrayList<ModelListener<P2pActivity>>();

			for (String listenerClassName : listenerClassNames) {
				listenersList.add((ModelListener<P2pActivity>)InstanceFactory.newInstance(
						listenerClassName));
			}

			listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
		}
		catch (Exception e) {
			_log.error(e);
		}
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:25,代码来源:P2pActivityPersistenceImpl.java

示例15: afterPropertiesSet

import com.liferay.portal.kernel.util.StringUtil; //导入方法依赖的package包/类
/**
 * Initializes the a h contact persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.de.fraunhofer.fokus.oefit.particity.model.AHContact")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<AHContact>> listenersList = new ArrayList<ModelListener<AHContact>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<AHContact>) InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        } catch (Exception e) {
            _log.error(e);
        }
    }
}
 
开发者ID:fraunhoferfokus,项目名称:particity,代码行数:24,代码来源:AHContactPersistenceImpl.java


注:本文中的com.liferay.portal.kernel.util.StringUtil.split方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。