View Javadoc

1   /*
2    * Copyright (C) 2008 ETH Zurich
3    *
4    * This file is part of Fosstrak (www.fosstrak.org).
5    *
6    * Fosstrak is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public
8    * License version 2.1, as published by the Free Software Foundation.
9    *
10   * Fosstrak is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13   * Lesser General Public License for more details.
14   *
15   * You should have received a copy of the GNU Lesser General Public
16   * License along with Fosstrak; if not, write to the Free
17   * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18   * Boston, MA  02110-1301  USA
19   */
20  
21  package org.fosstrak.epcis.repository.model;
22  
23  import java.util.List;
24  
25  /**
26   * A base event class that contains properties common to most events. This
27   * extends the EPCISEvent type described in section 7 of the spec, providing
28   * convenient access to shared data elements.
29   * 
30   * @author Sean Wellington
31   */
32  public abstract class BaseEvent extends EPCISEvent {
33  
34      private Long id;
35      private BusinessStepId bizStep;
36      private DispositionId disposition;
37      private ReadPointId readPoint;
38      private BusinessLocationId bizLocation;
39      private List<BusinessTransaction> bizTransList;
40      private List<EventFieldExtension> extensions;
41  
42      public BaseEvent() {
43          super();
44      }
45  
46      public Long getId() {
47          return id;
48      }
49  
50      public void setId(Long id) {
51          this.id = id;
52      }
53  
54      public BusinessStepId getBizStep() {
55          return bizStep;
56      }
57  
58      public void setBizStep(BusinessStepId bizStep) {
59          this.bizStep = bizStep;
60      }
61  
62      public DispositionId getDisposition() {
63          return disposition;
64      }
65  
66      public void setDisposition(DispositionId disposition) {
67          this.disposition = disposition;
68      }
69  
70      public ReadPointId getReadPoint() {
71          return readPoint;
72      }
73  
74      public void setReadPoint(ReadPointId readPoint) {
75          this.readPoint = readPoint;
76      }
77  
78      public BusinessLocationId getBizLocation() {
79          return bizLocation;
80      }
81  
82      public void setBizLocation(BusinessLocationId bizLocation) {
83          this.bizLocation = bizLocation;
84      }
85  
86      public List<BusinessTransaction> getBizTransList() {
87          return bizTransList;
88      }
89  
90      public void setBizTransList(List<BusinessTransaction> bizTransList) {
91          this.bizTransList = bizTransList;
92      }
93  
94      public List<EventFieldExtension> getExtensions() {
95          return extensions;
96      }
97  
98      public void setExtensions(List<EventFieldExtension> extensions) {
99          this.extensions = extensions;
100     }
101 
102 }