View Javadoc
1   package org.kuali.ole.describe.form;
2   
3   import org.kuali.ole.describe.bo.MarcEditorControlField;
4   import org.kuali.ole.describe.bo.MarcEditorDataField;
5   
6   import java.util.ArrayList;
7   import java.util.List;
8   
9   /**
10   * MarcEditorForm is the form class for Marc Editor
11   */
12  public class MarcEditorForm extends EditorForm {
13  
14      //Leader and Control Fields
15      private String leader;
16      private String message;
17      private String uuid;
18      private List<MarcEditorControlField> controlFields = new ArrayList<MarcEditorControlField>();
19      private List<MarcEditorDataField> dataFields = new ArrayList<MarcEditorDataField>();
20  
21      /**
22       * Default Constructor.
23       * The default behaviour of this object.
24       */
25      public MarcEditorForm() {
26          super();
27          controlFields.add(new MarcEditorControlField());
28          dataFields.add(new MarcEditorDataField());
29      }
30  
31      /**
32       * Gets the leader attribute.
33       *
34       * @return Returns leader.
35       */
36      public String getLeader() {
37          return leader;
38      }
39  
40      /**
41       * Sets the leader attribute value.
42       *
43       * @param leader The leader to set.
44       */
45      public void setLeader(String leader) {
46          this.leader = leader;
47      }
48  
49      /**
50       * Gets the  dataFields attribute.
51       *
52       * @return Returns dataFields.
53       */
54      public List<MarcEditorDataField> getDataFields() {
55          return dataFields;
56      }
57  
58      /**
59       * Sets the dataFields attribute value.
60       *
61       * @param dataFields The dataFields to set.
62       */
63      public void setDataFields(List<MarcEditorDataField> dataFields) {
64          this.dataFields = dataFields;
65      }
66  
67      /**
68       * Gets the  controlFields attribute.
69       *
70       * @return Returns controlFields.
71       */
72      public List<MarcEditorControlField> getControlFields() {
73          return controlFields;
74      }
75  
76      /**
77       * Sets the controlFields attribute value.
78       *
79       * @param controlFields The controlFields to set.
80       */
81      public void setControlFields(List<MarcEditorControlField> controlFields) {
82          this.controlFields = controlFields;
83      }
84  
85      /**
86       * Gets the  message attribute.
87       *
88       * @return Returns message.
89       */
90      public String getMessage() {
91          return message;
92      }
93  
94      /**
95       * Sets the message attribute value.
96       *
97       * @param message The message to set.
98       */
99      public void setMessage(String message) {
100         this.message = message;
101     }
102 
103     /**
104      * Gets the  uuid attribute.
105      *
106      * @return Returns uuid.
107      */
108     public String getUuid() {
109         return uuid;
110     }
111 
112     /**
113      * Sets the uuid attribute value.
114      *
115      * @param uuid The uuid to set.
116      */
117     public void setUuid(String uuid) {
118         this.uuid = uuid;
119     }
120 }