今天编写了bean文件
package bean;
public class keyword {
private String name;
private int value;
public keyword() {}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getValue() {
return value;
}
public void setValue(int value) {
this.value = value;
}
}
package bean;
public class paper {
private int id;
private String name;
private String href;
private String writer;
private String Abstract;
private String time;
private String keywords;
public paper() {}
public paper(int a,String b,String c,String d,String e,String f,String g) {
this.id=a;
this.name=b;
this.href=c;
this.writer=d;
this.Abstract=e;
this.time=f;
this.keywords=g;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getHref() {
return href;
}
public void setHref(String href) {
this.href = href;
}
public String getWriter() {
return writer;
}
public void setWriter(String writer) {
this.writer = writer;
}
public String getAbstract() {
return Abstract;
}
public void setAbstract(String abstract1) {
Abstract = abstract1;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getKeywords() {
return keywords;
}
public void setKeywords(String keywords) {
this.keywords = keywords;
}
}