View Javadoc
1   package org.kuali.ole.describe.bo;
2   
3   import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
4   
5   
6   /**
7    * Created with IntelliJ IDEA.
8    * User: ?
9    * Date: 2/7/13
10   * Time: 5:24 PM
11   * To change this template use File | Settings | File Templates.
12   */
13  public class OleDiscoveryExportMappingFields extends PersistableBusinessObjectBase {
14  
15      private String mappingFieldId;
16      private String marcField;
17      private String itemField;
18      private String description;
19      private String exportId;
20      private OleDiscoveryExportProfile oleDiscoveryExportProfile;
21  
22      /**
23       * Gets the mappingFieldId attribute.
24       *
25       * @return Returns the mappingFieldId
26       */
27      public String getMappingFieldId() {
28          return mappingFieldId;
29      }
30  
31      /**
32       * Sets the mappingFieldId attribute value.
33       *
34       * @param mappingFieldId The mappingFieldId to set.
35       */
36      public void setMappingFieldId(String mappingFieldId) {
37          this.mappingFieldId = mappingFieldId;
38      }
39  
40      /**
41       * Gets the marcField attribute.
42       *
43       * @return Returns the marcField
44       */
45      public String getMarcField() {
46          if (marcField == null && oleDiscoveryExportProfile != null) {
47              return oleDiscoveryExportProfile.getOleDiscoveryExportMappingFields().get(0).getMarcField();
48          }
49          return marcField;
50      }
51  
52      /**
53       * Sets the marcField attribute value.
54       *
55       * @param marcField The marcField to set.
56       */
57      public void setMarcField(String marcField) {
58          this.marcField = marcField;
59      }
60  
61      /**
62       * Gets the itemField attribute.
63       *
64       * @return Returns the itemField
65       */
66      public String getItemField() {
67          if (itemField == null && oleDiscoveryExportProfile != null) {
68              return oleDiscoveryExportProfile.getOleDiscoveryExportMappingFields().get(0).getItemField();
69          }
70          return itemField;
71      }
72  
73      /**
74       * Sets the itemField attribute value.
75       *
76       * @param itemField The itemField to set.
77       */
78      public void setItemField(String itemField) {
79          this.itemField = itemField;
80      }
81  
82      /**
83       * Gets the description attribute.
84       *
85       * @return Returns the description
86       */
87      public String getDescription() {
88          if (description == null && oleDiscoveryExportProfile != null) {
89              return oleDiscoveryExportProfile.getOleDiscoveryExportMappingFields().get(0).getDescription();
90          }
91          return description;
92      }
93  
94      /**
95       * Sets the description attribute value.
96       *
97       * @param description The description to set.
98       */
99      public void setDescription(String description) {
100         this.description = description;
101     }
102 
103     /**
104      * Gets the exportId attribute.
105      *
106      * @return Returns the exportId
107      */
108     public String getExportId() {
109         return exportId;
110     }
111 
112     /**
113      * Sets the exportId attribute value.
114      *
115      * @param exportId The exportId to set.
116      */
117     public void setExportId(String exportId) {
118         this.exportId = exportId;
119     }
120 
121     /**
122      * Gets the oleDiscoveryExportProfile instance.
123      *
124      * @return Return the instance of the type OleDiscoveryExportProfile
125      */
126     public OleDiscoveryExportProfile getOleDiscoveryExportProfile() {
127         return oleDiscoveryExportProfile;
128     }
129 
130     /**
131      * Sets the value for oleDiscoveryExportProfile.
132      *
133      * @param oleDiscoveryExportProfile The oleDiscoveryExportProfile to set.
134      */
135     public void setOleDiscoveryExportProfile(OleDiscoveryExportProfile oleDiscoveryExportProfile) {
136         this.oleDiscoveryExportProfile = oleDiscoveryExportProfile;
137     }
138 }