⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 question.java

📁 asp制作的在线考试系统
💻 JAVA
字号:
package cn.hxex.exam.model;

/**
 * The pojo about Question
 * 
 * @struts.form name="questionForm" extends="cn.hxex.exam.form.BaseForm"
 * 
 * @author galaxy
 * 
 */
public abstract class Question extends Base
{
	/**
	 * @hibernate.property column="TITLE"
	 */
	private String title;

	/**
	 * @hibernate.property column="ANSWER"
	 */
	private String answer;

	/**
	 * @hibernate.property column="SCORE"
	 */
	private Integer score;

	/**
	 * @return Returns the answer.
	 * 
	 * @struts.form-field form-name="questionForm"
	 * 
	 * @struts.validator type="required"
	 */
	public String getAnswer()
	{
		return answer;
	}

	/**
	 * @param answer
	 *            The answer to set.
	 */
	public void setAnswer(String answer)
	{
		this.answer = answer;
	}

	/**
	 * @return Returns the score.
	 * 
	 * @struts.form-field form-name="questionForm"
	 * 
	 * @struts.validator type="integer"
	 */
	public Integer getScore()
	{
		return score;
	}

	/**
	 * @param score
	 *            The score to set.
	 */
	public void setScore(Integer score)
	{
		this.score = score;
	}

	/**
	 * @return Returns the title.
	 * 
	 * @struts.form-field form-name="questionForm"
	 * 
	 * @struts.validator type="required"
	 */
	public String getTitle()
	{
		return title;
	}

	/**
	 * @param title
	 *            The title to set.
	 */
	public void setTitle(String title)
	{
		this.title = title;
	}

	private TestPaper testpaper;

	/**
	 * Get the Testpaper about this question
	 * 
	 * @hibernate.many-to-one column="PAPER_ID" cascade="none"
	 * 
	 * @return the paper
	 */
	public TestPaper getTestpaper()
	{
		return testpaper;
	}

	public void setTestpaper(TestPaper testpaper)
	{
		this.testpaper = testpaper;
	}

	public abstract String getContent();

	public abstract int getScore(String answer);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -