/*
 * Copyright (c) 2007 NTT DATA Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package jp.terasoluna.rich.functionsample.inputcheck.controller;

import jp.terasoluna.fw.web.rich.springmvc.controller.TerasolunaController;
import jp.terasoluna.rich.functionsample.inputcheck.bean.ArrayListStringData;
import jp.terasoluna.rich.functionsample.inputcheck.service.ArrayListStringService;

/**
 * コレクション型への入力チェックのコントローラ
 *
 */
public class ArrayListStringController 
        extends TerasolunaController<ArrayListStringData, ArrayListStringData> {
    
    /**
     * コレクション型への入力チェックのサービスクラス
     */
    protected ArrayListStringService arrayListStringServiceService = null;
    

    /**
     * サービス実行メソッドを実行させる。
     *
     * @param command 入力クラス
     * @return 入力クラス
     * @throws Exception 例外発生時
     */
    @Override
    protected ArrayListStringData executeService(ArrayListStringData command) 
            throws Exception {
        return arrayListStringServiceService.returnInputData(command);
    }


    /**
     * コレクション型への入力チェックのサービスクラスを設定する。
     * @param arrayListStringServiceService コレクション型への入力チェックのサービスクラス
     */
    public void setArrayListStringService(ArrayListStringService arrayListStringServiceService) {
        this.arrayListStringServiceService = arrayListStringServiceService;
    }

}
