Document 파일을 정의하는 일부터 시작해보자(예제 2-1 참고).
예제 2-1 Document.java
package com.apress.isf.java.model;
public class Document {
private String name;
private Type type;
private String location;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
}