📄 itemfactory.java
字号:
/**
* ItemFactory.java
* create by ZZ, 2007.12.16
*/
package olts.application;
import olts.exception.*;
/**
* 该接口抽象了具体的试题的创建过程
* @author ZZ
* @version 1.1
*
*/
public interface ItemFactory {
/**
* 该方法用于按照产生一个具体的试题,
* 该方法抽象了从一个抽象的试题创建具体的试题的过程
* @param i 抽象的试题
* @return 具体的试题
*/
public Item makeConcreteItem(Item i)throws ItemCreateException;
public Item makeConcreteItem(int id, int diff, int time,
int scroe, String con, String ans, String type)throws ItemCreateException;
/**
* 给方法用于得到题目的类型
* @return 表示题目类型的String[]
*/
public Object[] getItemTypes();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -