package vo;

import java.util.ArrayList;
import java.util.List;

public class Document {
	protected String docId;
	protected String title;
	protected String pubDate;
	protected int copyNum;
	protected List<String> descriptorList;
	protected Publisher publisher;
	protected Author author;
	
	public Document() {
		descriptorList = new ArrayList<>();
	}

	public String getDocId() {
		return docId;
	}

	public void setDocId(String docId) {
		this.docId = docId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPubDate() {
		return pubDate;
	}

	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}

	public int getCopyNum() {
		return copyNum;
	}

	public void setCopyNum(int copyNum) {
		this.copyNum = copyNum;
	}

	public List<String> getDescriptorList() {
		return descriptorList;
	}

	public void addDescriptor(String descriptor) {
		this.descriptorList.add(descriptor);
	}

	public Publisher getPublisher() {
		return publisher;
	}

	public void setPublisher(Publisher publisher) {
		this.publisher = publisher;
	}

	public Author getAuthor() {
		return author;
	}

	public void setAuthor(Author author) {
		this.author = author;
	}
}

@@ -106,20 +106,17 @@
  String 
-docI
+i
 d;%0D%0A%09pro
@@ -279,25 +279,34 @@
 ted 
+List%3C
 Author
+%3E
  author
+List
 ;%0D%0A
-%09
 %0D%0A%09p
@@ -360,24 +360,59 @@
 yList%3C%3E();%0D%0A
+%09%09authorList = new ArrayList%3C%3E();%0D%0A
 %09%7D%0D%0A%0D%0A%09publi
@@ -423,19 +423,16 @@
 ring get
-Doc
 Id() %7B%0D%0A
@@ -440,20 +440,17 @@
 %09return 
-docI
+i
 d;%0D%0A%09%7D%0D%0A
@@ -467,19 +467,16 @@
 void set
-Doc
 Id(Strin
@@ -477,20 +477,17 @@
 (String 
-docI
+i
 d) %7B%0D%0A%09%09
@@ -495,20 +495,14 @@
 his.
-docId = docI
+id = i
 d;%0D%0A
@@ -1012,21 +1012,16 @@
 r) %7B%0D%0A%09%09
-this.
 descript
@@ -1209,22 +1209,28 @@
 %09public 
+List%3C
 Author
+%3E
  getAuth
@@ -1231,16 +1231,20 @@
 etAuthor
+List
 () %7B%0D%0A%09%09
@@ -1252,24 +1252,28 @@
 eturn author
+List
 ;%0D%0A%09%7D%0D%0A%0D%0A%09pu
@@ -1282,19 +1282,19 @@
 ic void 
-set
+add
 Author(A
@@ -1316,28 +1316,30 @@
 %0D%0A%09%09
-this.
 author
- = 
+List.add(
 author
+)
 ;%0D%0A%09

Modify field name or type.