📄 objective.java
字号:
/* * Objective.java * * Created on 2003年11月5日, 下午9:18 */package romulus;/** * * @author Romulus * @version 1.0 */public class Objective implements RomulusNode{ /** The view of the Objective.*/ private int view = 0; /** The s_ident of the Objective.*/ private String ident = null; /** The contents.*/ private Content cont = null; /** Creates a new instance of Objective */ Objective(String ident, int can_view) throws RomulusException{ if(ident == null){ throw new RomulusException(RomulusException.IdentError); } this.ident = ident; view = View.getView(View.getView(can_view)); } /**set the content*/ void setContent(Content cont){ this.cont = cont; } /** get information*/ public int getView(){ return view; } public String getIdent(){ return this.ident; } public Content getContent(){ return cont; } /** The method used to accept the Visitor to do something. */ public void Accept(Visitor v) throws java.sql.SQLException, RomulusException { v.VisitObjective(this); } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -