/**
*
*/
package cn.edu.fudan.core.pac;
import java.util.HashMap;
import java.util.List;
//************************************************************************
//【类 名】 调用业务层返回类
/**
* 定义业务处理返回内容(这里只是给出了必需返回内容, 其他的由用户自定义)
*
* 必需返回内容 : 处理结果(true:成功;false:失败)
* 消息种类
* 消息内容
* @author yuegy
* @version 2011-02-10
*/
//************************************************************************
//【作 成】 www.sh-db.com.cn 2011-02-10(R1.00)
//************************************************************************
public class Result extends HashMap {
/**
* 版本ID
*/
private static final long serialVersionUID = -2826106183060761545L;
/**
* 处理结果
*/
private boolean pcsFlig;
/**
* 消息种类
*/
private String msgType;
/**
* 消息信息
*/
private List<String> msgDetail;
/**
* 构造方法
*
* @param processFlig 处理结果
*/
public Result(boolean processFlig){
this.pcsFlig = processFlig;
}
/**
* 构造方法
*
* @param processFlig 处理结果
* @param msgType 消息种类
* @param msgs 消息内容
*/
public Result(boolean processFlig, String msgType,List<String> msgs){
this.pcsFlig = processFlig;
this.msgType = msgType;
this.msgDetail = msgs;
}
/**
* 获取处理结果
*
* @return
*/
public boolean isPcsFlig() {
return pcsFlig;
}
/**
* 获取消息种类
*
* @return
*/
public String getMsgType() {
return msgType;
}
/**
* 获取消息内容
*
* @return
*/
public List<String> getMsgDetail() {
return msgDetail;
}
}