001package org.kuali.ole.describe.bo; 002 003import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 004 005 006/** 007 * Created with IntelliJ IDEA. 008 * User: ? 009 * Date: 2/7/13 010 * Time: 5:24 PM 011 * To change this template use File | Settings | File Templates. 012 */ 013public class OleDiscoveryExportMappingFields extends PersistableBusinessObjectBase { 014 015 private String mappingFieldId; 016 private String marcField; 017 private String itemField; 018 private String description; 019 private String exportId; 020 private OleDiscoveryExportProfile oleDiscoveryExportProfile; 021 022 /** 023 * Gets the mappingFieldId attribute. 024 * 025 * @return Returns the mappingFieldId 026 */ 027 public String getMappingFieldId() { 028 return mappingFieldId; 029 } 030 031 /** 032 * Sets the mappingFieldId attribute value. 033 * 034 * @param mappingFieldId The mappingFieldId to set. 035 */ 036 public void setMappingFieldId(String mappingFieldId) { 037 this.mappingFieldId = mappingFieldId; 038 } 039 040 /** 041 * Gets the marcField attribute. 042 * 043 * @return Returns the marcField 044 */ 045 public String getMarcField() { 046 if (marcField == null && oleDiscoveryExportProfile != null) { 047 return oleDiscoveryExportProfile.getOleDiscoveryExportMappingFields().get(0).getMarcField(); 048 } 049 return marcField; 050 } 051 052 /** 053 * Sets the marcField attribute value. 054 * 055 * @param marcField The marcField to set. 056 */ 057 public void setMarcField(String marcField) { 058 this.marcField = marcField; 059 } 060 061 /** 062 * Gets the itemField attribute. 063 * 064 * @return Returns the itemField 065 */ 066 public String getItemField() { 067 if (itemField == null && oleDiscoveryExportProfile != null) { 068 return oleDiscoveryExportProfile.getOleDiscoveryExportMappingFields().get(0).getItemField(); 069 } 070 return itemField; 071 } 072 073 /** 074 * Sets the itemField attribute value. 075 * 076 * @param itemField The itemField to set. 077 */ 078 public void setItemField(String itemField) { 079 this.itemField = itemField; 080 } 081 082 /** 083 * Gets the description attribute. 084 * 085 * @return Returns the description 086 */ 087 public String getDescription() { 088 if (description == null && oleDiscoveryExportProfile != null) { 089 return oleDiscoveryExportProfile.getOleDiscoveryExportMappingFields().get(0).getDescription(); 090 } 091 return description; 092 } 093 094 /** 095 * Sets the description attribute value. 096 * 097 * @param description The description to set. 098 */ 099 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}