View Javadoc

1   /*
2    * Copyright 2004 Carlos Sanchez.
3    *
4    * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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  package net.sf.oness.order.model.to;
17  
18  import java.math.BigDecimal;
19  import java.util.Collection;
20  
21  import net.sf.oness.common.model.to.AuditableTransferObject;
22  import net.sf.oness.party.model.party.bo.Party;
23  
24  /***
25   * @author Carlos Sanchez
26   * @version $Revision: 1.2 $
27   */
28  public abstract class WithParty extends AuditableTransferObject {
29  
30      private Party party;
31  
32      private Collection items;
33  
34      private BigDecimal amount;
35  
36      /***
37       * @param party
38       *            The party to set.
39       */
40      public void setParty(Party party) {
41          this.party = party;
42      }
43  
44      /***
45       * @return Returns the party.
46       */
47      public Party getParty() {
48          return party;
49      }
50  
51      /***
52       * @param items
53       *            The items to set.
54       */
55      public void setItems(Collection items) {
56          this.items = items;
57      }
58  
59      /***
60       * @return Returns the items.
61       */
62      public Collection getItems() {
63          return items;
64      }
65  
66      /***
67       * @param amount
68       *            The amount to set.
69       */
70      public void setAmount(BigDecimal amount) {
71          this.amount = amount;
72      }
73  
74      /***
75       * @return Returns the amount.
76       */
77      public BigDecimal getAmount() {
78          return amount;
79      }
80  
81  }