View Javadoc

1   /*
2    * Copyright 2005-2009 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /*
17   * Created on Mar 9, 2005
18   *
19   */
20  package org.kuali.ole.module.purap.businessobject;
21  
22  import org.kuali.ole.module.purap.document.ElectronicInvoiceRejectDocument;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  import java.util.LinkedHashMap;
26  
27  public class ElectronicInvoiceRejectReason extends PersistableBusinessObjectBase {
28  
29      private Integer invoiceRejectReasonIdentifier;
30      private Integer purapDocumentIdentifier;
31      private String invoiceFileName;
32      private String invoiceRejectReasonTypeCode;
33      private String invoiceRejectReasonDescription;
34      private ElectronicInvoiceRejectDocument electronicInvoiceRejectDocument;
35      private ElectronicInvoiceRejectReasonType invoiceRejectReasonType;
36  
37  
38      /**
39       *
40       */
41      public ElectronicInvoiceRejectReason() {
42          super();
43      }
44  
45      public ElectronicInvoiceRejectReason(String electronicInvoiceRejectTypeCode, String invoiceFileName, String description) {
46          super();
47          this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
48          this.invoiceFileName = invoiceFileName;
49          this.invoiceRejectReasonDescription = description;
50      }
51  
52      public ElectronicInvoiceRejectReason(ElectronicInvoiceRejectDocument eir, String electronicInvoiceRejectTypeCode, String invoiceFileName, String description) {
53          super();
54          this.electronicInvoiceRejectDocument = eir;
55          this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
56          this.invoiceFileName = invoiceFileName;
57          this.invoiceRejectReasonDescription = description;
58      }
59  
60      public ElectronicInvoiceRejectReason(Integer purapDocumentIdentifier, String electronicInvoiceRejectTypeCode, String invoiceFileName, String description) {
61          super();
62          this.purapDocumentIdentifier = purapDocumentIdentifier;
63          this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
64          this.invoiceFileName = invoiceFileName;
65          this.invoiceRejectReasonDescription = description;
66      }
67  
68      /**
69       * @return Returns the electronicInvoiceRejectDocument.
70       */
71      public ElectronicInvoiceRejectDocument getElectronicInvoiceRejectDocument() {
72          return electronicInvoiceRejectDocument;
73      }
74  
75      /**
76       * @param electronicInvoiceRejectDocument
77       *         The electronicInvoiceRejectDocument to set.
78       */
79      public void setElectronicInvoiceRejectDocument(ElectronicInvoiceRejectDocument electronicInvoiceRejectDocument) {
80          this.electronicInvoiceRejectDocument = electronicInvoiceRejectDocument;
81      }
82  
83      /**
84       * @return Returns the invoiceRejectReasonTypeCode.
85       */
86      public String getInvoiceRejectReasonTypeCode() {
87          return invoiceRejectReasonTypeCode;
88      }
89  
90      /**
91       * @param invoiceRejectReasonTypeCode The invoiceRejectReasonTypeCode to set.
92       */
93      public void setInvoiceRejectReasonTypeCode(String electronicInvoiceRejectTypeCode) {
94          this.invoiceRejectReasonTypeCode = electronicInvoiceRejectTypeCode;
95      }
96  
97      /**
98       * @return Returns the invoiceRejectReasonIdentifier.
99       */
100     public Integer getInvoiceRejectReasonIdentifier() {
101         return invoiceRejectReasonIdentifier;
102     }
103 
104     /**
105      * @param invoiceRejectReasonIdentifier The invoiceRejectReasonIdentifier to set.
106      */
107     public void setInvoiceRejectReasonIdentifier(Integer id) {
108         this.invoiceRejectReasonIdentifier = id;
109     }
110 
111     /**
112      * @return Returns the invoiceFileName.
113      */
114     public String getInvoiceFileName() {
115         return invoiceFileName;
116     }
117 
118     /**
119      * @param invoiceFileName The invoiceFileName to set.
120      */
121     public void setInvoiceFileName(String invoiceFileName) {
122         this.invoiceFileName = invoiceFileName;
123     }
124 
125     /**
126      * @return Returns the invoiceRejectReasonDescription.
127      */
128     public String getInvoiceRejectReasonDescription() {
129         return invoiceRejectReasonDescription;
130     }
131 
132     /**
133      * @param invoiceRejectReasonDescription The invoiceRejectReasonDescription to set.
134      */
135     public void setInvoiceRejectReasonDescription(String invoiceRejectReasonDescription) {
136         this.invoiceRejectReasonDescription = invoiceRejectReasonDescription;
137     }
138 
139     public ElectronicInvoiceRejectReasonType getInvoiceRejectReasonType() {
140         return invoiceRejectReasonType;
141     }
142 
143     public void setInvoiceRejectReasonType(ElectronicInvoiceRejectReasonType invoiceRejectReasonType) {
144         this.invoiceRejectReasonType = invoiceRejectReasonType;
145     }
146 
147     /**
148      * @return Returns the purapDocumentIdentifier.
149      */
150     public Integer getPurapDocumentIdentifier() {
151         return purapDocumentIdentifier;
152     }
153 
154     /**
155      * @param purapDocumentIdentifier The purapDocumentIdentifier to set.
156      */
157     public void setPurapDocumentIdentifier(Integer rejectHeaderId) {
158         this.purapDocumentIdentifier = rejectHeaderId;
159     }
160 
161     /**
162      * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
163      */
164     protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
165 
166         LinkedHashMap m = new LinkedHashMap();
167         m.put("invoiceRejectReasonIdentifier", this.invoiceRejectReasonIdentifier);
168         return m;
169     }
170 
171 }