1 package org.kuali.ole.pojo.bib;
2
3 import org.kuali.ole.docstore.model.xmlpojo.work.bib.marc.ControlField;
4 import org.kuali.ole.docstore.model.xmlpojo.work.bib.marc.DataField;
5
6 import java.util.ArrayList;
7 import java.util.List;
8
9
10
11
12
13
14
15
16 public class BibliographicRecord {
17 private String leader;
18 private List<ControlField> controlfields = new ArrayList<ControlField>();
19 private List<DataField> datafields = new ArrayList<DataField>();
20
21 public String getLeader() {
22 return leader;
23 }
24
25 public void setLeader(String leader) {
26 this.leader = leader;
27 }
28
29 public List<ControlField> getControlfields() {
30 return controlfields;
31 }
32
33 public List<DataField> getDatafields() {
34 return datafields;
35 }
36
37 public void setDatafields(List<DataField> datafields) {
38 this.datafields = datafields;
39 }
40
41 public void addDataField(DataField dataField) {
42 if (null != datafields && !this.datafields.contains(dataField)) {
43 this.datafields.add(dataField);
44 }
45 }
46
47 public void setControlfields(List<ControlField> controlfields) {
48 this.controlfields = controlfields;
49 }
50 }