View Javadoc

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   * Created by IntelliJ IDEA.
11   * User: pvsubrah
12   * Date: 4/2/12
13   * Time: 3:49 PM
14   * To change this template use File | Settings | File Templates.
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  }