📄 perspectivemodel.java
字号:
/* */package org.impact.stars.perspectivemd.perspective.model;import java.sql.Date;import java.util.HashMap;/** * This class provides methods to view and modify concept * information for a particular concept. */public class PerspectiveModel implements java.io.Serializable { private String perspectiveID; protected String name; private String conceptID; private String stakeholderID; private Date declaretime; private String projectID; private HashMap purpose ; private HashMap context; private HashMap content; public PerspectiveModel(String aperspectiveID, String aname, String aconceptID, String astakeholderID, Date adeclaretime, String aprojectID, HashMap apurpose, HashMap acontext, HashMap acontent) { this.perspectiveID = aperspectiveID; this.name = aname; this.conceptID = aconceptID; this.stakeholderID = astakeholderID; this.declaretime = adeclaretime; this.projectID = aprojectID; this.purpose = apurpose; this.context = acontext; this.content = acontent; } /** * Class constructor with no arguments, used by the web tier. */ public PerspectiveModel() {} // get and set methods for the instance variables public String getEventName() { return "java:comp/env/event/PerspectiveEvent"; } public String getPerspectiveID(){ return perspectiveID; } public void setPerspectiveID(String pid){ perspectiveID = pid; } public String getName(){ return name; } public void setName(String aname){ name = aname; } public String getConceptID(){ return conceptID; } public void setConceptID(String cid){ conceptID = cid; } public String getStakeholderID(){ return stakeholderID; } public void setStakeholderID(String sid){ stakeholderID = sid; } public String getProjectID(){ return projectID; } public void setProjectID(String prid){ projectID = prid; } public Date getDeclaretime(){ return declaretime; } public void setDeclaretime(Date dt){ declaretime = dt; } public HashMap getPurpose(){ return purpose; } public void setPurpose(HashMap apurpose){ purpose = apurpose; } public HashMap getContext(){ return context; } public void setContext(HashMap acontext){ context = acontext; } public HashMap getContent(){ return content; } public void setContent(HashMap acontent){ content = acontent; } /* public String toString() { String ret = null; ret = "userId = " + userId + "\n"; ret += "status = " + status + "\n"; ret += "contact info = " + info.toString() + "\n"; return ret; } */ /** shallow copy */ public void copy(PerspectiveModel other) { this.perspectiveID = other.perspectiveID; this.name = other.name; this.conceptID = other.conceptID; this.stakeholderID = other.stakeholderID; this.declaretime = other.declaretime; this.projectID = other.projectID; this.purpose = other.purpose; this.context = other.context; this.content = other.content; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -