//***********************************************************************************************
//*  KKW00129SF01DBean.java                 All Rights reserved.Copyright (c) K-Opticom   
//***********************************************************************************************
/*
履歴：
	NO	日付			更新者								    
	01	2012.12.21		Webクライアント定義ツール 2.0.39		
*/
 
/**
 * <DL>
 * <DT>名前
 * <p>
 * <DT>説明: 
 * <DD>データの初期化.
 * <DD> generated by Web Client tool V01/L01.
 * </DL>
*/
package eo.web.webview.KKW00129SF;
 
import java.io.Serializable;
import com.fujitsu.futurity.web.x33.beans.X33VViewBaseBean;
import com.fujitsu.futurity.web.x33.beans.X33VListedBeanInterface;
import com.fujitsu.futurity.web.x33.beans.X33VDataTypeList;
import com.fujitsu.futurity.web.x33.beans.X33VDataTypeBooleanBean;
import com.fujitsu.futurity.web.x33.beans.X33VDataTypeStringBean;
import com.fujitsu.futurity.web.x33.beans.X33VDataTypeLongBean;
import com.fujitsu.futurity.web.x33.beans.X33VLoadModelException;
import com.fujitsu.futurity.web.x33.beans.X33VDataTypeBeanInterface;
import com.fujitsu.futurity.web.x31.X31CBaseBean;
import com.fujitsu.futurity.web.x31.X31CWebComponent;
 
import javax.faces.model.SelectItem;
import java.util.ArrayList;
// 例外処理用にインポートする
import com.fujitsu.futurity.web.x33.X33SException;
 
/* シリアライズ警告 */
@SuppressWarnings("serial")
public class KKW00129SF01DBean 
    implements X33VDataTypeBeanInterface, X33VListedBeanInterface, Serializable {
    
    //プロパティの初期化
	protected String cd_div_cd_update;
	protected String cd_div_cd_value = "";
    protected Boolean cd_div_cd_enabled = false;
	protected String cd_div_cd_state = "";
	protected String cd_div_nm_update;
	protected String cd_div_nm_value = "";
    protected Boolean cd_div_nm_enabled = false;
	protected String cd_div_nm_state = "";
	protected String select_index_update;
	protected String select_index_value = "";
    protected Boolean select_index_enabled = false;
	protected String select_index_state = "";
	protected X33VDataTypeList default_cd_list_list = null;			
	protected X33VDataTypeList cd_div_cd_list_list = null;			
	protected X33VDataTypeList cd_div_nm_list_list = null;			
 
    protected int index;
 
	// コンストラクタ生成
	public KKW00129SF01DBean(){
	
		// コンストラクタの宣言部生成
		default_cd_list_list = new X33VDataTypeList();
		cd_div_cd_list_list = new X33VDataTypeList();
		cd_div_nm_list_list = new X33VDataTypeList();
	}
 
    /**
     *  Getter/Setterメソッド
     */
	public String getCd_div_cd_update() {
		return this.cd_div_cd_update ;
	}
 
	public void setCd_div_cd_update(String param) {
		this.cd_div_cd_update = param ;
	}
 
	public String getCd_div_cd_value() {
		return this.cd_div_cd_value ;
	}
 
	public void setCd_div_cd_value(String param) {
		this.cd_div_cd_value = param ;
	}
 
    public Boolean getCd_div_cd_enabled() {
		return this.cd_div_cd_enabled ;
	}
 
	public void setCd_div_cd_enabled(Boolean param) {
		this.cd_div_cd_enabled = param ;
	}
 
 	public String getCd_div_cd_state() {
		return this.cd_div_cd_state ;
	}
 
	public void setCd_div_cd_state(String param) {
		this.cd_div_cd_state = param ;
	}
 
	public String getCd_div_nm_update() {
		return this.cd_div_nm_update ;
	}
 
	public void setCd_div_nm_update(String param) {
		this.cd_div_nm_update = param ;
	}
 
	public String getCd_div_nm_value() {
		return this.cd_div_nm_value ;
	}
 
	public void setCd_div_nm_value(String param) {
		this.cd_div_nm_value = param ;
	}
 
    public Boolean getCd_div_nm_enabled() {
		return this.cd_div_nm_enabled ;
	}
 
	public void setCd_div_nm_enabled(Boolean param) {
		this.cd_div_nm_enabled = param ;
	}
 
 	public String getCd_div_nm_state() {
		return this.cd_div_nm_state ;
	}
 
	public void setCd_div_nm_state(String param) {
		this.cd_div_nm_state = param ;
	}
 
	public String getSelect_index_update() {
		return this.select_index_update ;
	}
 
	public void setSelect_index_update(String param) {
		this.select_index_update = param ;
	}
 
	public String getSelect_index_value() {
		return this.select_index_value ;
	}
 
	public void setSelect_index_value(String param) {
		this.select_index_value = param ;
	}
 
    public Boolean getSelect_index_enabled() {
		return this.select_index_enabled ;
	}
 
	public void setSelect_index_enabled(Boolean param) {
		this.select_index_enabled = param ;
	}
 
 	public String getSelect_index_state() {
		return this.select_index_state ;
	}
 
	public void setSelect_index_state(String param) {
		this.select_index_state = param ;
	}
 
 
    public X33VDataTypeList getDefault_cd_list_list() {
        return this.default_cd_list_list ;
    }
 
    public void setDefault_cd_list_list(X33VDataTypeList param) {
        this.default_cd_list_list = param ;
    }
 
    public ArrayList<SelectItem> getJsflist_default_cd_list (){
        ArrayList ary = new ArrayList<SelectItem>();
        for(int i=0; i< default_cd_list_list.size(); i++){
            String itemValue = (String)((X33VDataTypeStringBean) default_cd_list_list.get(i)).getValue();
            SelectItem item = new SelectItem(new Integer(i).toString(), itemValue);
            ary.add(item);
		}
        return ary;
    }
 
 
    public X33VDataTypeList getCd_div_cd_list_list() {
        return this.cd_div_cd_list_list ;
    }
 
    public void setCd_div_cd_list_list(X33VDataTypeList param) {
        this.cd_div_cd_list_list = param ;
    }
 
    public ArrayList<SelectItem> getJsflist_cd_div_cd_list (){
        ArrayList ary = new ArrayList<SelectItem>();
        for(int i=0; i< cd_div_cd_list_list.size(); i++){
            String itemValue = (String)((X33VDataTypeStringBean) cd_div_cd_list_list.get(i)).getValue();
            SelectItem item = new SelectItem(new Integer(i).toString(), itemValue);
            ary.add(item);
		}
        return ary;
    }
 
 
    public X33VDataTypeList getCd_div_nm_list_list() {
        return this.cd_div_nm_list_list ;
    }
 
    public void setCd_div_nm_list_list(X33VDataTypeList param) {
        this.cd_div_nm_list_list = param ;
    }
 
    public ArrayList<SelectItem> getJsflist_cd_div_nm_list (){
        ArrayList ary = new ArrayList<SelectItem>();
        for(int i=0; i< cd_div_nm_list_list.size(); i++){
            String itemValue = (String)((X33VDataTypeStringBean) cd_div_nm_list_list.get(i)).getValue();
            SelectItem item = new SelectItem(new Integer(i).toString(), itemValue);
            ary.add(item);
		}
        return ary;
    }
 
    public int getIndex() {
        return this.index ;
    }
 
    public void setIndex(int index) {
        this.index = index;
    }
 
    /**
     * 項目名とサブキーからデータを取得します
     *
     * @param key 項目名
     * @param subkey サブキー
     * @return Object データ
     */
    public Object loadModelData(String key, String subkey) {
 
        // key,subkeyがnullの場合、nullを返す
        if(key == null || subkey == null){
            return null;
        }
 
        int separaterPoint = key.indexOf("/");       
 
        //項目ごとに処理を入れる。
        //データタイプがStringの項目"コード値"(項目ＩＤ:cd_div_cd)
        if(key.equals("コード値")){
            if(subkey.equalsIgnoreCase("value")){
                return getCd_div_cd_value();
            }
            else if(subkey.equalsIgnoreCase("enable")){ //subkeyが"enable"の場合、cd_div_cd_enableのgetterの戻り値を返す。
                return getCd_div_cd_enabled(); 
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                return getCd_div_cd_state();                
            }
        }
 
        //データタイプがStringの項目"コードタイプ名称"(項目ＩＤ:cd_div_nm)
        else if(key.equals("コードタイプ名称")){
            if(subkey.equalsIgnoreCase("value")){
                return getCd_div_nm_value();
            }
            else if(subkey.equalsIgnoreCase("enable")){ //subkeyが"enable"の場合、cd_div_nm_enableのgetterの戻り値を返す。
                return getCd_div_nm_enabled(); 
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                return getCd_div_nm_state();                
            }
        }
 
        //データタイプがStringの項目"選択インデックス"(項目ＩＤ:select_index)
        else if(key.equals("選択インデックス")){
            if(subkey.equalsIgnoreCase("value")){
                return getSelect_index_value();
            }
            else if(subkey.equalsIgnoreCase("enable")){ //subkeyが"enable"の場合、select_index_enableのgetterの戻り値を返す。
                return getSelect_index_enabled(); 
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                return getSelect_index_state();                
            }
        }
 
        // 配列項目 "初期設定コードリスト"(String型。項目ID:default_cd_list)
        else if(key.equals("初期設定コードリスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1);
            // インデックス値の代わりに"*"が指定されていたら、リストの要素数を返す。
            if(key.equals("*")) {
                return Integer.valueOf(default_cd_list_list.size());
            }
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                return null;
            }
            if(tmpIndexInt == null) {
                return null;
            }
            int tmpIndex = tmpIndexInt.intValue();
            if(tmpIndex < 0 || tmpIndex >= default_cd_list_list.size()) { // インデックス値がリスト個数-1を超える場合、ここでnullを返す。
                return null;
            } 
            return ((X33VDataTypeStringBean)default_cd_list_list.get(tmpIndex)).loadModelData(subkey);
        }
 
        // 配列項目 "コードリスト"(String型。項目ID:cd_div_cd_list)
        else if(key.equals("コードリスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1);
            // インデックス値の代わりに"*"が指定されていたら、リストの要素数を返す。
            if(key.equals("*")) {
                return Integer.valueOf(cd_div_cd_list_list.size());
            }
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                return null;
            }
            if(tmpIndexInt == null) {
                return null;
            }
            int tmpIndex = tmpIndexInt.intValue();
            if(tmpIndex < 0 || tmpIndex >= cd_div_cd_list_list.size()) { // インデックス値がリスト個数-1を超える場合、ここでnullを返す。
                return null;
            } 
            return ((X33VDataTypeStringBean)cd_div_cd_list_list.get(tmpIndex)).loadModelData(subkey);
        }
 
        // 配列項目 "コード名リスト"(String型。項目ID:cd_div_nm_list)
        else if(key.equals("コード名リスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1);
            // インデックス値の代わりに"*"が指定されていたら、リストの要素数を返す。
            if(key.equals("*")) {
                return Integer.valueOf(cd_div_nm_list_list.size());
            }
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                return null;
            }
            if(tmpIndexInt == null) {
                return null;
            }
            int tmpIndex = tmpIndexInt.intValue();
            if(tmpIndex < 0 || tmpIndex >= cd_div_nm_list_list.size()) { // インデックス値がリスト個数-1を超える場合、ここでnullを返す。
                return null;
            } 
            return ((X33VDataTypeStringBean)cd_div_nm_list_list.get(tmpIndex)).loadModelData(subkey);
        }
 
        // 条件に合致するプロパティが存在しない場合は、nullを返す。
        return null;
    }
 
    /**
     * 項目名とサブキーからデータを設定します（X31CBaseBeanの同名メソッドの実装）
     *
     * @param gamenId 画面ID(予備)
     * @param key 項目名
     * @param subkey サブキー
     * @param in_value データ
     */
    public void storeModelData(String gamenId, String key, String subkey, Object in_value) {
         storeModelData(key, subkey, in_value);
    }
 
	 /**
     * 項目名とサブキーからデータを取得します
     *
     * @param key 項目名
     * @param subkey サブキー
     * @param in_value データ
     */
    public void storeModelData(String key, String subkey, Object in_value) {
         storeModelData(key, subkey, in_value, false);
    }
 
    /**
     * 項目名とサブキーからデータを取得します
     *
     * @param key 項目名
     * @param subkey サブキー
     * @param in_value データ
     * @param isSetAsString Long型項目ValueプロパティへString型値の設定を行う場合true
     */
    public void storeModelData(String key, String subkey, Object in_value, boolean isSetAsString) { 
 
        // key,subkeyがnullの場合、処理を中止
        if(key == null || subkey == null){
            return;
        }
 
        int separaterPoint = key.indexOf("/");
 
        // 項目ごとに処理を入れる。
        //データタイプがStringの項目"コード値"(項目ＩＤ:cd_div_cd)
        if(key.equals("コード値")){
            if(subkey.equalsIgnoreCase("value")){
                setCd_div_cd_value((String)in_value);
            }
            else if(subkey.equalsIgnoreCase("enable")){ //subkeyが"enable"の場合、cd_div_cd_enabledのsetterを実行する。
                setCd_div_cd_enabled((Boolean)in_value); 
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                setCd_div_cd_state((String)in_value);
            }
        }  
 
        //データタイプがStringの項目"コードタイプ名称"(項目ＩＤ:cd_div_nm)
        else if(key.equals("コードタイプ名称")){
            if(subkey.equalsIgnoreCase("value")){
                setCd_div_nm_value((String)in_value);
            }
            else if(subkey.equalsIgnoreCase("enable")){ //subkeyが"enable"の場合、cd_div_nm_enabledのsetterを実行する。
                setCd_div_nm_enabled((Boolean)in_value); 
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                setCd_div_nm_state((String)in_value);
            }
        }  
 
        //データタイプがStringの項目"選択インデックス"(項目ＩＤ:select_index)
        else if(key.equals("選択インデックス")){
            if(subkey.equalsIgnoreCase("value")){
                setSelect_index_value((String)in_value);
            }
            else if(subkey.equalsIgnoreCase("enable")){ //subkeyが"enable"の場合、select_index_enabledのsetterを実行する。
                setSelect_index_enabled((Boolean)in_value); 
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                setSelect_index_state((String)in_value);
            }
        }  
 
        // 配列項目 "初期設定コードリスト"(String型。項目ID:default_cd_list)
        else if(key.equals("初期設定コードリスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1);//("default_cd_list/0"から最初の"/"より後を取得)。
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                tmpIndexInt = null;
            }
            if(tmpIndexInt != null) { // インデックス値が数値文字列の場合
                int tmpIndex = tmpIndexInt.intValue();
                if(tmpIndex >= 0 && tmpIndex < default_cd_list_list.size()) { // インデックス値がリスト個数-1以下の場合
                    ((X33VDataTypeStringBean)default_cd_list_list.get(tmpIndex)).storeModelData(subkey,in_value);
					//キャスト部分は、項目定義型にあわせてX33VDataTypeStringBean, X33VDataTypeLongBean, X33VDataTypeBooleanBeanのうち1つを指定。
					//X33VDataTypeLongBeanではsubkeyと入力値およびisSetAsStringフラグを引数に指定
                }
            }
        }
 
        // 配列項目 "コードリスト"(String型。項目ID:cd_div_cd_list)
        else if(key.equals("コードリスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1);//("cd_div_cd_list/0"から最初の"/"より後を取得)。
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                tmpIndexInt = null;
            }
            if(tmpIndexInt != null) { // インデックス値が数値文字列の場合
                int tmpIndex = tmpIndexInt.intValue();
                if(tmpIndex >= 0 && tmpIndex < cd_div_cd_list_list.size()) { // インデックス値がリスト個数-1以下の場合
                    ((X33VDataTypeStringBean)cd_div_cd_list_list.get(tmpIndex)).storeModelData(subkey,in_value);
					//キャスト部分は、項目定義型にあわせてX33VDataTypeStringBean, X33VDataTypeLongBean, X33VDataTypeBooleanBeanのうち1つを指定。
					//X33VDataTypeLongBeanではsubkeyと入力値およびisSetAsStringフラグを引数に指定
                }
            }
        }
 
        // 配列項目 "コード名リスト"(String型。項目ID:cd_div_nm_list)
        else if(key.equals("コード名リスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1);//("cd_div_nm_list/0"から最初の"/"より後を取得)。
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                tmpIndexInt = null;
            }
            if(tmpIndexInt != null) { // インデックス値が数値文字列の場合
                int tmpIndex = tmpIndexInt.intValue();
                if(tmpIndex >= 0 && tmpIndex < cd_div_nm_list_list.size()) { // インデックス値がリスト個数-1以下の場合
                    ((X33VDataTypeStringBean)cd_div_nm_list_list.get(tmpIndex)).storeModelData(subkey,in_value);
					//キャスト部分は、項目定義型にあわせてX33VDataTypeStringBean, X33VDataTypeLongBean, X33VDataTypeBooleanBeanのうち1つを指定。
					//X33VDataTypeLongBeanではsubkeyと入力値およびisSetAsStringフラグを引数に指定
                }
            }
        }
 
    }
 
    /**
      * データタイプビーンの項目名のリストを返す。
      * @return ArrayList 項目名のリスト
      */
    public static ArrayList<String> listKoumokuIds() {
        ArrayList<String> koumokuList = new ArrayList<String>();
        koumokuList.add("コード値") ;
        koumokuList.add("コードタイプ名称") ;
        koumokuList.add("選択インデックス") ;
        koumokuList.add("初期設定コードリスト") ;
        koumokuList.add("コードリスト") ;
        koumokuList.add("コード名リスト") ;
        return koumokuList;
    }
 
    /**
     * 項目名とサブキーからデータの型情報を取得します
     *
     * @param key 項目名
     * @param subkey サブキー
     * @return Class データの型情報
     */
    public Class<?> typeModelData(String key, String subkey) {
 
        // key,subkeyがnullの場合、nullを返す
        if(key == null || subkey == null){
            return null;
        }
        
        int separaterPoint = key.indexOf("/");
        
        //項目ごとに処理を入れる。
        //データタイプがStringの項目"コード値"(項目ＩＤ:cd_div_cd)
        if(key.equals("コード値")){
            if(subkey.equalsIgnoreCase("value")){
                return String.class;
            }
            else if(subkey.equalsIgnoreCase("enable")){
                return Boolean.class;
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                return String.class;
            }
        }
 
        //データタイプがStringの項目"コードタイプ名称"(項目ＩＤ:cd_div_nm)
        else if(key.equals("コードタイプ名称")){
            if(subkey.equalsIgnoreCase("value")){
                return String.class;
            }
            else if(subkey.equalsIgnoreCase("enable")){
                return Boolean.class;
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                return String.class;
            }
        }
 
        //データタイプがStringの項目"選択インデックス"(項目ＩＤ:select_index)
        else if(key.equals("選択インデックス")){
            if(subkey.equalsIgnoreCase("value")){
                return String.class;
            }
            else if(subkey.equalsIgnoreCase("enable")){
                return Boolean.class;
            }
            else if(subkey.equalsIgnoreCase("state")){ //subkeyが"state"の場合、ステータスを返す。
                return String.class;
            }
        }
 
        // 配列項目 "初期設定コードリスト"(String型。項目ID:default_cd_list)
        else if(key.equals("初期設定コードリスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1); //("初期設定コードリスト/0"から最初の"/"より後を取得)。
            // インデックス値の代わりに"*"が指定されていたら、リストの要素数を返す。
            if(key.equals("*")) {
                return Integer.class;
            }
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                return null;
            }
            if(tmpIndexInt == null) {
                return null;
            }
            int tmpIndex = tmpIndexInt.intValue();
            if(tmpIndex < 0 || tmpIndex >= default_cd_list_list.size()) { // インデックス値がリスト個数-1を超える場合、ここでnullを返す。
                return null;
            }
            return ((X33VDataTypeStringBean)default_cd_list_list.get(tmpIndex)).typeModelData(subkey);
        }
 
        // 配列項目 "コードリスト"(String型。項目ID:cd_div_cd_list)
        else if(key.equals("コードリスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1); //("コードリスト/0"から最初の"/"より後を取得)。
            // インデックス値の代わりに"*"が指定されていたら、リストの要素数を返す。
            if(key.equals("*")) {
                return Integer.class;
            }
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                return null;
            }
            if(tmpIndexInt == null) {
                return null;
            }
            int tmpIndex = tmpIndexInt.intValue();
            if(tmpIndex < 0 || tmpIndex >= cd_div_cd_list_list.size()) { // インデックス値がリスト個数-1を超える場合、ここでnullを返す。
                return null;
            }
            return ((X33VDataTypeStringBean)cd_div_cd_list_list.get(tmpIndex)).typeModelData(subkey);
        }
 
        // 配列項目 "コード名リスト"(String型。項目ID:cd_div_nm_list)
        else if(key.equals("コード名リスト")) {
            // keyの次の要素を取得
            key = key.substring(separaterPoint + 1); //("コード名リスト/0"から最初の"/"より後を取得)。
            // インデックス値の代わりに"*"が指定されていたら、リストの要素数を返す。
            if(key.equals("*")) {
                return Integer.class;
            }
            // 次はリスト中のインデックスを見る
            Integer tmpIndexInt = null;
            try{
                tmpIndexInt = Integer.valueOf(key);
            }
            // インデックス値が数値文字列でない場合は、ここでnullを返す。
            catch(NumberFormatException e){
                return null;
            }
            if(tmpIndexInt == null) {
                return null;
            }
            int tmpIndex = tmpIndexInt.intValue();
            if(tmpIndex < 0 || tmpIndex >= cd_div_nm_list_list.size()) { // インデックス値がリスト個数-1を超える場合、ここでnullを返す。
                return null;
            }
            return ((X33VDataTypeStringBean)cd_div_nm_list_list.get(tmpIndex)).typeModelData(subkey);
        }
 
        // 条件に合致するプロパティが存在しない場合は、nullを返す。
        return null;
    }
    
    /**
     * リスト項目のインスタンスを生成します。
     * @param key 項目名
     * @return int 追加された要素のインデックス番号
     */
    public int addListDataInstance (String key) throws X33SException{
 
        // nullの場合、-1で返す。
        if(key == null){
            return -1;
        }
 
        //各繰り返し項目の固定要素数指定への処理を行う。
        // 配列項目 "初期設定コードリスト"(String型。項目ID:default_cd_list)
        else if( key.equals("初期設定コードリスト") ) {
            if( default_cd_list_list == null ) { // リストがnullの場合、新しい空のインスタンスを生成する
                default_cd_list_list = new X33VDataTypeList();
            }
            X33VDataTypeStringBean tmpBean = new X33VDataTypeStringBean();// データタイプビーン型で指定したデータタイプビーンのインスタンスを生成する。
                                                                          // なお、データタイプビーンの項目初期値設定は、各データビーン内部で定義
            default_cd_list_list.add(tmpBean);
            return default_cd_list_list.size() -1;
        }
 
        // 配列項目 "コードリスト"(String型。項目ID:cd_div_cd_list)
        else if( key.equals("コードリスト") ) {
            if( cd_div_cd_list_list == null ) { // リストがnullの場合、新しい空のインスタンスを生成する
                cd_div_cd_list_list = new X33VDataTypeList();
            }
            X33VDataTypeStringBean tmpBean = new X33VDataTypeStringBean();// データタイプビーン型で指定したデータタイプビーンのインスタンスを生成する。
                                                                          // なお、データタイプビーンの項目初期値設定は、各データビーン内部で定義
            cd_div_cd_list_list.add(tmpBean);
            return cd_div_cd_list_list.size() -1;
        }
 
        // 配列項目 "コード名リスト"(String型。項目ID:cd_div_nm_list)
        else if( key.equals("コード名リスト") ) {
            if( cd_div_nm_list_list == null ) { // リストがnullの場合、新しい空のインスタンスを生成する
                cd_div_nm_list_list = new X33VDataTypeList();
            }
            X33VDataTypeStringBean tmpBean = new X33VDataTypeStringBean();// データタイプビーン型で指定したデータタイプビーンのインスタンスを生成する。
                                                                          // なお、データタイプビーンの項目初期値設定は、各データビーン内部で定義
            cd_div_nm_list_list.add(tmpBean);
            return cd_div_nm_list_list.size() -1;
        }
 
        return -1; //該当する項目がない場合、-1を返す
	}
 
    /**
     * リスト項目のインスタンスを削除します。
     * @param key 項目名
     * @param index 削除対象のインデックス番号
     */
    public void removeElementFromListData (String key, int index) throws X33SException{
 
        if(key != null){
 
            // 配列項目 "初期設定コードリスト"(String型。項目ID:default_cd_list)
            if(key.equals("初期設定コードリスト")) {
                if(index >= 0 && index < default_cd_list_list.size()) { // 指定のインデックスが現在のリストの範囲内なら、そのインデックスの内容を削除する
                    default_cd_list_list.remove(index);
                }
            }
 
            // 配列項目 "コードリスト"(String型。項目ID:cd_div_cd_list)
            else if(key.equals("コードリスト")) {
                if(index >= 0 && index < cd_div_cd_list_list.size()) { // 指定のインデックスが現在のリストの範囲内なら、そのインデックスの内容を削除する
                    cd_div_cd_list_list.remove(index);
                }
            }
 
            // 配列項目 "コード名リスト"(String型。項目ID:cd_div_nm_list)
            else if(key.equals("コード名リスト")) {
                if(index >= 0 && index < cd_div_nm_list_list.size()) { // 指定のインデックスが現在のリストの範囲内なら、そのインデックスの内容を削除する
                    cd_div_nm_list_list.remove(index);
                }
            }
 
        }
    }
    /**
     * リスト項目の要素をクリアします。
     * @param key 項目名
     */
    public void clearListDataInstance (String key) throws X33SException{
 
        if(key !=null){
 
            // 配列項目 "初期設定コードリスト"(String型。項目ID:default_cd_list)
            if(key.equals("初期設定コードリスト")) {
                default_cd_list_list.clear();
            }
            // 配列項目 "コードリスト"(String型。項目ID:cd_div_cd_list)
            else if(key.equals("コードリスト")) {
                cd_div_cd_list_list.clear();
            }
            // 配列項目 "コード名リスト"(String型。項目ID:cd_div_nm_list)
            else if(key.equals("コード名リスト")) {
                cd_div_nm_list_list.clear();
            }
        }
    }
 
}
