📄 question.java
字号:
/*
* @(#)Question.java Dec 14, 2006
* Copyright 2006 qingdaosoftware, Inc. All rights reserved
*/
package com.qrsx.exam.model;
/**
*
* 功能:The pojo about Question
*
* <p><a href="com.qrsx.exam.model.Question.java"> <i>View Source </i> </a></br>
*
* Company : QingdaoSoftware<br>
* Author : <a href="mailto:wxt1013@163.com">WangXitao</a></p>
* Version : 1.0<br>
* Date : Dec 14, 2006<br>
*
* @struts.form name="questionForm" extends="com.qrsx.exam.struts.form.BaseForm"
*
*/
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 + -