View Javadoc

1   /**
2    * $Id: BaseFlowContextImpl.java 49 2006-10-26 06:10:31Z maldito_orco $
3    * $Revision: 49 $
4    * $Date: 2006-10-26 03:10:31 -0300 (Thu, 26 Oct 2006) $
5    *
6    * =========================================================================
7    *
8    * Copyright 2005 Tubo
9    *
10   *  Licensed under the Apache License, Version 2.0 (the "License");
11   *  you may not use this file except in compliance with the License.
12   *  You may obtain a copy of the License at
13   *
14   *     http://www.apache.org/licenses/LICENSE-2.0
15   *
16   *  Unless required by applicable law or agreed to in writing, software
17   *  distributed under the License is distributed on an "AS IS" BASIS,
18   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   *  See the License for the specific language governing permissions and
20   *  limitations under the License.
21   */
22  package org.tubo.resource.flow;
23  
24  //log
25  import org.apache.commons.logging.Log;
26  import org.apache.commons.logging.LogFactory;
27  //tubo
28  import org.tubo.item.Item;
29  import org.tubo.event.Event;
30  import org.tubo.resource.Resource;
31  
32  /**
33   * <p>
34   * </p>
35   *
36   * <p>
37   * Created: Oct 20, 2006, 2:47:00 PM <br>
38   * Last Modification Date: $Date: 2006-10-26 03:10:31 -0300 (Thu, 26 Oct 2006) $
39   * </p>
40   *
41   * @author maldito_orco (maldito_orco@users.sourceforge.net)
42   * @version $Revision: 49 $
43   */
44  public class BaseFlowContextImpl implements FlowContext {
45      public static final String RCS_ID = "$Id: BaseFlowContextImpl.java 49 2006-10-26 06:10:31Z maldito_orco $";
46      private static Log log = LogFactory.getLog(BaseFlowContextImpl.class);
47  
48      private Event originEvent = null;
49      private Item item = null;
50      private Resource originator = null;
51  
52  
53      public Event getOriginEvent() {
54          return originEvent;
55      }
56  
57      public void setOriginEvent(Event originEvent) {
58          this.originEvent = originEvent;
59      }
60  
61      public Item getItem() {
62          return item;
63      }
64      
65      public void setItem(Item item) {
66          this.item = item;
67      }
68  
69  
70      public Resource getOriginator() {
71          return originator;
72      }
73  
74      public void setOriginator(Resource originator) {
75          this.originator = originator;
76      }
77  }