/*********************************************************************
* All Rights reserved,Copyright (c) K-Opticom
**********************************************************************
*＜プログラム内容＞
*   システム名      ：eo顧客基幹システム
*   モジュール名    ：JCKLcsWebStringUtil
*   ソースファイル名：JCKLcsWebStringUtil.java
*   作成者          ：富士通
*   日付            ：2011年07月01日
*＜機能概要＞
*   LCS連携にかかるWebデータ変換機能を提供する。
*＜修正履歴＞
*   バージョン  修正日       修正者      修正内容
*   v1.00.00    2011/07/01   FJ）眞方    新規作成
*
**********************************************************************/
package eo.web.webview.common;

import com.fujitsu.futurity.web.x31.X31CWebConst;
import com.fujitsu.futurity.web.x31.X31SDataBeanAccess;

/**
 * <p>LCS連携にかかるWebデータ変換機能を提供する。</p>
 * <BR>
 * @ author 富士通
 */
public class JCKLcsWebStringUtil {

	/**
	 * Bean項目を文字列結合します。
	 * <br />
	 * @param bean データBean
	 * @param strAll 項目名(複数可)
	 * @return 結合後の文字列
	 */
	public static String concatBeanString(X31SDataBeanAccess bean, String...strAll){

		if ((strAll == null)||(strAll.length == 0))
		{
			return null;
		}

		StringBuffer sb = new StringBuffer();
		for (int i = 0; i < strAll.length; i++)
		{
			String str = bean.sendMessageString(strAll[i], X31CWebConst.DATABEAN_GET_VALUE);
			if (str != null)
			{
				sb.append(str);
			}
		}

		return sb.toString();
	}
}
